"use strict";this.default_tr=this.default_tr||{};(function(_){var window=this; try{ var Ng,Og,Pg,eh,kh,qh,rh,th,uh,wh,Ah,Ch,Bh,Ih,Jh,Nh,Lh,Mh,Jg;_.Hg=function(a){return"function"==typeof _.Gg&&a instanceof _.Gg};_.Ig=function(a){if(_.Hg(a))return a.g;throw Error("D");};_.Kg=function(a){if(Jg.test(a))return a};_.Lg=function(a){return"function"==typeof _.Gg&&a instanceof _.Gg?_.Ig(a):_.Kg(a)};_.Mg=function(a,b){a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity=b}; Ng=function(a){if(!_.$a||!_.ab)return!1;for(var b=0;b<_.ab.brands.length;b++){var c=_.ab.brands[b].brand;if(c&&c.indexOf(a)!=-1)return!0}return!1};Og=function(){return _.Za("Firefox")||_.Za("FxiOS")};Pg=function(){return _.bb()?Ng("Chromium"):(_.Za("Chrome")||_.Za("CriOS"))&&!(_.bb()?0:_.Za("Edge"))||_.Za("Silk")}; _.Qg=function(){return _.Za("Safari")&&!(Pg()||(_.bb()?0:_.Za("Coast"))||_.cb()||(_.bb()?0:_.Za("Edge"))||(_.bb()?Ng("Microsoft Edge"):_.Za("Edg/"))||(_.bb()?Ng("Opera"):_.Za("OPR"))||Og()||_.Za("Silk")||_.Za("Android"))};_.Rg=function(){return _.Za("Android")&&!(Pg()||Og()||_.cb()||_.Za("Silk"))};_.Tg=function(a,b){if(a!=null){var c;var d=(c=Sg)!=null?c:Sg={};c=d[a]||0;c>=b||(d[a]=c+1,a=Error(),_.Mg(a,"incident"),_.zb(a))}}; _.Ug=function(a,b,c){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(c===void 0?0:c)&&Symbol.for&&a?Symbol.for(a):a!=null?Symbol(a):Symbol():b};_.Zg=function(a,b){_.Vg||_.Wg in a||Xg(a,Yg);a[_.Wg]|=b};_.$g=function(a,b){_.Vg||_.Wg in a||Xg(a,Yg);a[_.Wg]=b};_.ah=function(a){_.Zg(a,34);return a};_.bh=function(a){_.Zg(a,8192);return a};_.dh=function(a,b){return b===void 0?a.g!==_.ch&&!!(2&(a.L[_.Wg]|0)):!!(2&b)&&a.g!==_.ch};eh=function(a){a.Ao=!0;return a}; _.jh=function(a){var b=a;if(fh(b)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(b))throw Error(String(b));}else if(gh(b)&&!Number.isSafeInteger(b))throw Error(String(b));return hh?BigInt(a):a=ih(a)?a?"1":"0":fh(a)?a.trim()||"0":String(a)};kh=function(a,b){if(a.length>b.length)return!1;if(a.lengthe)return!1;if(d=g){var t=e-q,v=void 0;((v=b)!=null?v:b={})[t]=p}else f[e]=p;if(u)for(var w in u)a=u[w],a!= null&&(a=c(a,d))!=null&&(h=+w,e=void 0,n&&!Number.isNaN(h)&&(e=h+q)=1024)throw Error("qa");for(var m in h)f= +m,f1024)throw Error("ra");e=e&-16760833|(m&1023)<<14}}}_.$g(a,e|64|d);return a};Jh=function(){if(_.bd)throw Error("pa");_.Tg(Kh,5)}; Nh=function(a,b){if(typeof a!=="object")return a;if(Array.isArray(a)){var c=a[_.Wg]|0;return a.length===0&&c&1?void 0:Lh(a,c,b)}if(a!=null&&a[lh]===mh)return Mh(a);if(a instanceof _.Gh){b=a.rc;if(b&2)return a;if(!a.size)return;c=_.ah(_.Hh(a));if(a.lc)for(a=0;a=hi&&a<=ii:a[0]==="-"?kh(a,ji):kh(a,ki)});ji=Number.MIN_SAFE_INTEGER.toString();hi=hh?BigInt(Number.MIN_SAFE_INTEGER):void 0;ki=Number.MAX_SAFE_INTEGER.toString();ii=hh?BigInt(Number.MAX_SAFE_INTEGER):void 0;_.li=typeof BigInt==="function"?BigInt.asIntN:void 0;_.mi=Number.isSafeInteger;_.ni=Number.isFinite;_.oi=Math.trunc;var pi=function(){try{var a=function(){return(0,_.ec)(Map,[],this.constructor)};_.z(a,Map);_.dd(new a);return!1}catch(b){return!0}}(),qi=function(){this.g=new Map},ri,si;_.k=qi.prototype;_.k.get=function(a){return this.g.get(a)};_.k.set=function(a,b){this.g.set(a,b);this.size=this.g.size;return this};_.k.delete=function(a){a=this.g.delete(a);this.size=this.g.size;return a};_.k.clear=function(){this.g.clear();this.size=this.g.size};_.k.has=function(a){return this.g.has(a)};_.k.entries=function(){return this.g.entries()}; _.k.keys=function(){return this.g.keys()};_.k.values=function(){return this.g.values()};_.k.forEach=function(a,b){return this.g.forEach(a,b)};qi.prototype[Symbol.iterator]=function(){return this.entries()};ri=function(){if(pi)return Object.setPrototypeOf(qi.prototype,Map.prototype),Object.defineProperties(qi.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),qi;var a=function(){return(0,_.ec)(Map,[],this.constructor)};_.z(a,Map);return a}(); _.Gh=function(a,b,c,d){c=c===void 0?rh:c;d=d===void 0?rh:d;var e=ri.call(this)||this;e.rc=a[_.Wg]|0;e.lc=b;e.fe=c;e.Zh=e.lc?th:d;for(var f=0;f=1+(e?0:-1)&&f>=g){var h=a[g];if(h!=null&&typeof h==="object"&&h.constructor===Object)return h[c]=d,b}if(f<=g)return a[f]=d,b;if(d!==void 0){var m;g=((m=b)!=null?m:b=a[_.Wg]|0)>>14&1023||536870912;c>=g?d!=null&&(f={},a[g+(e?0:-1)]=(f[c]=d,f)):a[f]=d}return b};_.Fi=function(a,b){a=_.Ei(a,b,void 0);return Array.isArray(a)?a:_.bi};_.Gi=function(a,b){2&b&&(a|=2);return a|1};_.Hi=function(a,b){return a=(2&b?a|2:a&-3)&-273}; _.Ii=function(a){return!!(2&a)&&!!(4&a)||!!(256&a)};_.Ji=function(a,b,c,d,e,f,g,h){var m=b;f===1||(f!==4?0:2&b||!(16&b)&&32&d)?_.Ii(b)||(b|=!a.length||g&&!(4096&b)||32&d&&!(4096&b||16&b)?2:256,b!==m&&_.$g(a,b),Object.freeze(a)):(f===2&&_.Ii(b)&&(a=_.wi(a),m=0,b=_.Hi(b,d),d=_.Di(c,d,e,a)),_.Ii(b)||(h||(b|=16),b!==m&&_.$g(a,b)));2&b||!(4096&b||16&b)||_.Ci(c,d);return a};_.Ki=function(a,b,c,d){_.Bi(a);var e=a.L;_.Di(e,e[_.Wg]|0,b,(d==="0"?Number(c)===0:c===d)?void 0:c);return a}; _.Li=function(a,b,c,d,e){var f=!1;d=_.Ei(a,d,e,function(g){var h=_.ph(g,c,!1,b);f=h!==g&&h!=null;return h});if(d!=null)return f&&!_.dh(d)&&_.Ci(a,b),d}; _.Mi=function(a,b,c,d,e,f,g,h){var m=_.dh(a,c);f=m?1:f;g=!!g||f===3;m=h&&!m;(f===2||m)&&_.Ai(a)&&(b=a.L,c=b[_.Wg]|0);a=_.Fi(b,e);var n=a===_.bi?7:a[_.Wg]|0,q=_.Gi(n,c);if(h=!(4&q)){var u=a,p=c,t=!!(2&q);t&&(p|=2);for(var v=!t,w=!0,y=0,B=0;y=f){var g=a[f];if(g!=null&&typeof g==="object"&&g.constructor===Object){c=g[b];var h=!0}else if(e===f)c=g;else return}else c=a[e];if(d&&c!=null){d=d(c);if(d==null)return d;if(!Object.is(d,c))return h?g[b]=d:a[e]=d,d}return c}};_.bj=function(a,b,c,d,e){b=_.Ei(a.L,b,c,e);if(b!==null||d&&a.h!==_.ch)return b};_.cj=function(a,b,c){_.Bi(a);var d=a.L;_.Di(d,d[_.Wg]|0,b,c);return a}; _.dj=function(a){return a===_.fi?2:4};_.ej=function(a,b,c,d){var e=a.L,f=e[_.Wg]|0;b=_.Li(e,f,b,c,d);if(b==null)return b;f=e[_.Wg]|0;if(!_.dh(a,f)){var g=_.sh(b);g!==b&&(_.Ai(a)&&(e=a.L,f=e[_.Wg]|0),b=g,f=_.Di(e,f,c,b,d),_.Ci(e,f))}return b};_.fj=function(a,b,c){var d=a.L;return _.Mi(a,d,d[_.Wg]|0,b,c,_.dj(),!1,!0)};_.gj=function(a,b,c){c=_.Ni(c);_.cj(a,b,c);c&&!_.dh(c)&&_.Ci(a.L);return a};_.hj=function(a,b){var c=c===void 0?!1:c;a=_.yi(_.bj(a,b));return a!=null?a:c}; _.ij=function(a,b){var c=c===void 0?"":c;var d;return(d=_.zi(_.bj(a,b)))!=null?d:c};_.jj=function(a,b){var c=c===void 0?0:c;a=_.bj(a,b);a=a==null?a:(0,_.ni)(a)?a|0:void 0;return a!=null?a:c};_.kj=function(a,b){if(b==null||b=="")return new a;b=JSON.parse(b);if(!Array.isArray(b))throw Error("ta");return new a(_.vi(b))};var nj,lj,oj;_.mj=function(a,b,c){if(typeof b==="string")lj(a,c,b);else for(var d in b)lj(a,b[d],d)};nj=/^--.+/;lj=function(a,b,c){var d=oj[c];if(!d){var e=Zi(c);d=e;a.style[e]===void 0&&(e=(_.id?"Webkit":_.hd?"Moz":null)+$i(e),a.style[e]!==void 0&&(d=e));oj[c]=d}(c=d)&&(nj.test(c)?a.style.setProperty(c,b):a.style[c]=b)};oj={};_.pj=_.hd?"MozUserSelect":_.id||_.gd?"WebkitUserSelect":null; }catch(e){_._DumpException(e)} try{ var rj,uj,vj,wj,xj,zj,Aj,Bj,Ej,Fj,Gj,Hj,Ij,Jj,Lj,Nj,Oj,Pj,Qj,Rj,Sj,Tj,Vj,Yj,Zj,ik,jk,lk,tj,sj,mk,yj,nk,pk,Cj,Dj,Kj,yk;_.qj=function(a){if(a instanceof _.Vc)return a.g;throw Error("D");};rj=function(a){var b=a.L,c=b[_.Wg]|0;return _.Qh(a,b,c)?_.Ph(a,b,!0):new a.constructor(_.Oh(b,c,!1))}; uj=function(){if(!sj){sj={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;c<5;c++){var d=a.concat(b[c].split(""));tj[c]=d;for(var e=0;e>2];g=b[(g&3)<<4|h>>4];h=b[(h&15)<<2|m>>6];m=b[m&63];c[f++]=n+g+h+m}n=0;m=d;switch(a.length-e){case 2:n=a[e+1],m=b[(n&15)<<2]||d;case 1:a=a[e],c[f]=b[a>>2]+b[(a&3)<<4|n>>4]+m+d}return c.join("")}; wj=function(a,b){function c(m){for(;d>4);g!=64&&(b(f<<4&240|g>>2),h!=64&&b(g<<6&192|h))}}; xj=function(a){var b=a.length,c=b*3/4;c%3?c=Math.floor(c):"=.".indexOf(a[b-1])!=-1&&(c="=.".indexOf(a[b-2])!=-1?c-2:c-1);var d=new Uint8Array(c),e=0;wj(a,function(f){d[e++]=f});return e!==c?d.subarray(0,e):d};zj=function(a){return yj[a]||""};Aj=function(a){a=Error(a);_.Mg(a,"warning");return a};Bj=function(){return typeof BigInt==="function"};Ej=function(a){var b=a>>>0;Cj=b;Dj=(a-b)/4294967296>>>0};Fj=function(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]}; Gj=function(a){if(a<0){Ej(-a);var b=_.A(Fj(Cj,Dj));a=b.next().value;b=b.next().value;Cj=a>>>0;Dj=b>>>0}else Ej(a)};Hj=function(a){a=String(a);return"0000000".slice(a.length)+a};Ij=function(a,b){b>>>=0;a>>>=0;if(b<=2097151)var c=""+(4294967296*b+a);else Bj()?c=""+(BigInt(b)<>>24|b<<8)&16777215,b=b>>16&65535,a=(a&16777215)+c*6777216+b*6710656,c+=b*8147497,b*=2,a>=1E7&&(c+=a/1E7>>>0,a%=1E7),c>=1E7&&(b+=c/1E7>>>0,c%=1E7),c=b+Hj(c)+Hj(a));return c}; Jj=function(){var a=Cj,b=Dj;b&2147483648?Bj()?a=""+(BigInt(b|0)<>>0)):(b=_.A(Fj(a,b)),a=b.next().value,b=b.next().value,a="-"+Ij(a,b)):a=Ij(a,b);return a};Lj=function(a){switch(typeof a){case "bigint":return!0;case "number":return(0,_.ni)(a);case "string":return Kj.test(a);default:return!1}};_.Mj=function(a){if(typeof a!=="number")throw Aj("int32");if(!(0,_.ni)(a))throw Aj("int32");return a|0}; Nj=function(a){if(a==null)return a;if(typeof a==="string"&&a)a=+a;else if(typeof a!=="number")return;return(0,_.ni)(a)?a|0:void 0}; Oj=function(a){var b=a.length;if(a[0]==="-"?b<20||b===20&&a<="-9223372036854775808":b<19||b===19&&a<="9223372036854775807")return a;if(a.length<16)Gj(Number(a));else if(Bj())a=BigInt(a),Cj=Number(a&BigInt(4294967295))>>>0,Dj=Number(a>>BigInt(32)&BigInt(4294967295));else{b=+(a[0]==="-");Dj=Cj=0;for(var c=a.length,d=b,e=(c-b)%6+b;e<=c;d=e,e+=6)d=Number(a.slice(d,e)),Dj*=1E6,Cj=Cj*1E6+d,Cj>=4294967296&&(Dj+=Math.trunc(Cj/4294967296),Dj>>>=0,Cj>>>=0);b&&(b=_.A(Fj(Cj,Dj)),a=b.next().value,b=b.next().value, Cj=a,Dj=b)}return Jj()};Pj=function(a){var b=(0,_.oi)(Number(a));if((0,_.mi)(b))return _.jh(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));return Bj()?_.jh((0,_.li)(64,BigInt(a))):_.jh(Oj(a))};Qj=function(a){var b=(0,_.oi)(Number(a));if((0,_.mi)(b))return String(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));return Oj(a)}; Rj=function(a){a=(0,_.oi)(a);if(!(0,_.mi)(a)){Gj(a);var b=Cj,c=Dj;if(a=c&2147483648)b=~b+1>>>0,c=~c>>>0,b==0&&(c=c+1>>>0);var d=c*4294967296+(b>>>0);b=Number.isSafeInteger(d)?d:Ij(b,c);a=typeof b==="number"?a?-b:b:a?"-"+b:b}return a};Sj=function(a){a=(0,_.oi)(a);(0,_.mi)(a)?a=String(a):(Gj(a),a=Jj());return a};Tj=function(a){return(0,_.mi)(a)?_.jh(Rj(a)):_.jh(Sj(a))}; _.Uj=function(a){var b=void 0;b!=null||(b=1024);if(!Lj(a))throw Aj("int64");var c=typeof a;switch(b){case 512:switch(c){case "string":return Qj(a);case "bigint":return String((0,_.li)(64,a));default:return Sj(a)}case 1024:switch(c){case "string":return Pj(a);case "bigint":return _.jh((0,_.li)(64,a));default:return Tj(a)}case 0:switch(c){case "string":return Qj(a);case "bigint":return _.jh((0,_.li)(64,a));default:return Rj(a)}default:throw Error("Unknown format requested type for int64");}}; Vj=function(a){var b=typeof a;if(a==null)return a;if(b==="bigint")return _.jh((0,_.li)(64,a));if(Lj(a))return b==="string"?Pj(a):Tj(a)};_.Wj=function(a){if(a!=null&&typeof a!=="string")throw Error();return a};_.Xj=function(a){return function(b){return _.kj(a,b)}}; Yj=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;q=n=0}function b(u){for(var p=g,t=0;t<64;t+=4)p[t/4]=u[t]<<24|u[t+1]<<16|u[t+2]<<8|u[t+3];for(t=16;t<80;t++)u=p[t-3]^p[t-8]^p[t-14]^p[t-16],p[t]=(u<<1|u>>>31)&4294967295;u=e[0];var v=e[1],w=e[2],y=e[3],B=e[4];for(t=0;t<80;t++){if(t<40)if(t<20){var H=y^v&(w^y);var I=1518500249}else H=v^w^y,I=1859775393;else t<60?(H=v&w|y&(v|w),I=2400959708):(H=v^w^y,I=3395469782);H=((u<<5|u>>>27)&4294967295)+H+ B+I+p[t]&4294967295;B=y;y=w;w=(v<<30|v>>>2)&4294967295;v=u;u=H}e[0]=e[0]+u&4294967295;e[1]=e[1]+v&4294967295;e[2]=e[2]+w&4294967295;e[3]=e[3]+y&4294967295;e[4]=e[4]+B&4294967295}function c(u,p){if(typeof u==="string"){u=unescape(encodeURIComponent(u));for(var t=[],v=0,w=u.length;v=56;t--)f[t]=p&255,p>>>=8;b(f);for(t=p=0;t<5;t++)for(var v=24;v>=0;v-=8)u[p++]=e[t]>>v&255;return u}for(var e=[],f=[],g=[],h=[128],m=1;m<64;++m)h[m]=0;var n,q;a();return{reset:a,update:c,digest:d,dj:function(){for(var u=d(),p="",t=0;t=0;b--)this.remove(a[b])}; var Ek=function(a){a=(a.g.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;fd.length)throw Error();a!=void 0?d.splice(a,1,b):d.push(b);var e=a=d===_.bi?7:d[_.Wg]|0;(b=_.dh(b))?(a&=-9,d.length===1&&(a&=-4097)):a|=4096;a!==e&&_.$g(d,a);b||_.Ci(c)};_.Wk=function(a,b){return _.ek(a,8,b)};var Xk=function(a){this.L=_.E(a,19)};_.z(Xk,_.G);Xk.prototype.od=function(a){return _.vk(this,2,a)};var Zk=function(a,b){this.Ab=b=b===void 0?!1:b;this.j=this.locale=null;this.h=0;this.l=!1;this.g=new Xk;Number.isInteger(a)&&this.g.od(a);b||(this.locale=document.documentElement.getAttribute("lang"));Yk(this,new Rk)};Zk.prototype.od=function(a){this.g.od(a);return this}; var Yk=function(a,b){_.gj(a.g,1,b);_.jj(b,1)||Sk(b);a.Ab||(b=$k(a),_.ij(b,5)||_.ek(b,5,a.locale));a.j&&(b=$k(a),_.ej(b,Ok,9)||_.gj(b,9,a.j))},al=function(a,b){a.h=b},bl=function(a){var b=b===void 0?ak:b;var c=a.Ab?void 0:_.ub();c?ik(c,b).then(function(d){a.j=Pk(d!=null?d:"[]");d=$k(a);_.gj(d,9,a.j);return!0}).catch(function(){return!1}):Promise.resolve(!1)},$k=function(a){var b=_.ej(a.g,Rk,1);b||(b=new Rk,Yk(a,b));a=b;b=_.ej(a,Qk,11);b||(b=new Qk,_.gj(a,11,b));return b},cl=function(a,b,c,d,e,f,g){c= c===void 0?0:c;d=d===void 0?0:d;e=e===void 0?null:e;f=f===void 0?0:f;g=g===void 0?0:g;if(!a.Ab){var h=$k(a);var m=new Nk;m=_.vk(m,1,a.h);m=_.fk(m,2,a.l);d=_.tk(m,3,d>0?d:void 0);d=_.tk(d,4,f>0?f:void 0);d=_.tk(d,5,g>0?g:void 0);f=d.L;g=f[_.Wg]|0;d=_.dh(d,g)?d:_.Qh(d,f,g)?_.Ph(d,f):new d.constructor(_.Oh(f,g,!0));_.gj(h,10,d)}a=rj(a.g);h=Date.now().toString();a=_.cj(a,4,h==null?h:_.Uj(h));b=_.qk(a,3,b.slice());e&&(a=new Lk,e=_.tk(a,13,e),a=new Mk,e=_.gj(a,2,e),a=new Uk,e=_.gj(a,1,e),e=_.vk(e,2,9), _.gj(b,18,e));c&&_.uk(b,14,c);return b};jk.prototype.reset=function(){this.g=this.h=this.j};jk.prototype.za=function(){return this.h};var wk=function(a){this.L=_.E(a,8)};_.z(wk,_.G);var dl=_.Xj(wk);var xk=function(a){this.L=_.E(a)};_.z(xk,_.G);var el;el=new yk;var il=function(a){_.l.call(this);var b=this;this.g=[];this.da="";this.J=this.T=!1;this.ua=this.K=-1;this.V=!1;this.B=this.experimentIds=null;this.A=this.l=0;this.G=null;this.F=this.I=0;this.xa=1;this.ye=0;this.Dc=a.Dc;this.Yb=a.Yb||function(){};this.j=new Zk(a.Dc,a.Ab);this.Ja=a.Ja||null;this.jc=a.jc||null;this.C=a.jl||null;this.Lb=a.Lb||null;this.Vc=a.Vc||!1;this.gd=null;this.withCredentials=!a.Jd;this.Ab=a.Ab||!1;this.X=!this.Ab&&!!_.ub()&&!!_.ub().navigator&&_.ub().navigator.sendBeacon!==void 0; this.Z=typeof URLSearchParams!=="undefined"&&!!(new URL(fl())).searchParams&&!!(new URL(fl())).searchParams.set;var c=Sk(new Rk);Yk(this.j,c);this.o=new jk(1E4);a=gl(this,a.tg);this.h=new Jk(this.o.za(),a);this.P=new Jk(6E5,a);this.Vc||this.P.start();this.Ab||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){hl(b);var d;(d=b.G)==null||d.flush()}}),document.addEventListener("pagehide",function(){hl(b);var d;(d=b.G)==null||d.flush()}))},jl,ml,kl; _.z(il,_.l);var gl=function(a,b){if(!a.Z)return function(){};var c=function(){a.flush()};return b?function(){b().then(c)}:c};il.prototype.N=function(){hl(this);this.h.stop();this.P.stop();_.l.prototype.N.call(this)};jl=function(a){a.C||(a.C=fl());try{return(new URL(a.C)).toString()}catch(b){return(new URL(a.C,_.ub().location.origin)).toString()}};_.ll=function(a,b){if(b instanceof _.Vk)a.log(b);else try{var c=_.Wk(new _.Vk,_.hk(b));a.log(c)}catch(d){kl(a,4,1)}}; ml=function(a,b){a.o=new jk(b<1?1:b);Kk(a.h,a.o.za())};kl=function(a,b,c){a.G&&a.G.zo(b,c)}; il.prototype.log=function(a){kl(this,2,1);if(this.Z){a=rj(a);var b=this.xa++;b=a=_.uk(a,21,b);var c=_.bj(b,1);var d=d===void 0?!1:d;var e=typeof c;d=c==null?c:e==="bigint"?String((0,_.li)(64,c)):Lj(c)?e==="string"?Qj(c):d?Sj(c):Rj(c):void 0;d==null&&(d=Date.now(),d=Number.isFinite(d)?d.toString():"0",_.cj(b,1,d==null?d:_.Uj(d)));d=_.bj(b,15,void 0,void 0,Vj);d!=null&&(typeof d==="bigint"?(0,_.Dh)(d)?d=Number(d):(d=(0,_.li)(64,d),d=(0,_.Dh)(d)?Number(d):String(d)):d=Lj(d)?typeof d==="number"?Rj(d): Qj(d):void 0);d!=null||_.uk(b,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(d=rj(this.experimentIds),_.gj(b,16,d));kl(this,1,1);b=this.g.length-1E3+1;b>0&&(this.g.splice(0,b),this.l+=b,kl(this,3,b));this.g.push(a);this.Vc||this.h.g||this.h.start()}}; il.prototype.flush=function(a,b){var c=this;if(this.g.length===0)a&&a();else{var d=Date.now();if(this.ua>d&&this.K0&&(c.K=Date.now(),c.ua=c.K+p);p=el.g;v=_.xh(_.yh);var w;_.Vg&&v&&((w=t.L[v])==null?void 0:w[p])!=null&&_.Tg(_.$h,3);a:{w=el.g;var y=y===void 0?!1:y;if(_.xh(_.ai)&&_.xh(_.yh)&&void 0===_.ai){p=t.L;v=p[_.yh];if(!v)break a;if(v=v.Ko)try{v(p,w,lk);break a}catch(B){_.zb(B)}}y&&(y=t.L,(p=_.xh(_.yh))&&p in y&&(y=y[p])&&delete y[w])}y=el.sc?el.h(t,el.sc,el.g,el.j): el.h(t,el.g,null,el.j);if(y=y===null?void 0:y)y=_.rk(y,1,-1),y!==-1&&(c.V||ml(c,y))}}a&&a();c.A=0},q=function(p,t){var v=_.fj(f,_.Vk,3);var w=Number(_.sk(f,14)),y=c.o;y.g=Math.min(3E5,y.g*2);y.h=Math.min(3E5,y.g+Math.round(.1*(Math.random()-.5)*2*y.g));Kk(c.h,c.o.za());p===401&&g&&(c.da=g);w&&(c.l+=w);t===void 0&&(t=500<=p&&p<600||p===401||p===0);t&&(c.g=v.concat(c.g),c.Vc||c.h.g||c.h.start());kl(c,7,1);b&&b("net-send-failed",p);++c.A},u=function(){c.Ja&&c.Ja.send(m,n,q)};h?h.then(function(p){kl(c, 5,e);m.Jf["Content-Encoding"]="gzip";m.Jf["Content-Type"]="application/binary";m.body=p;m.Yi=2;u()},function(){kl(c,6,e);u()}):u()}}}}; var nl=function(a,b,c){c=c===void 0?null:c;var d=d===void 0?a.withCredentials:d;var e={},f=new URL(jl(a));c&&(e.Authorization=c);a.Lb&&(e["X-Goog-AuthUser"]=a.Lb,f.searchParams.set("authuser",a.Lb));return{url:f.toString(),body:b,Yi:1,Jf:e,Sk:"POST",withCredentials:d,ye:a.ye}},hl=function(a){a.j.l=!0;a.T&&(a.j.h=3,ol(a));a.J&&(a.j.h=2,pl(a));a.flush();a.j.l=!1},ol=function(a){ql(a,32,10,function(b,c){b=new URL(b);b.searchParams.set("format","json");var d=!1;try{d=_.ub().navigator.sendBeacon(b.toString(), _.hk(c))}catch(e){}d||(a.X=!1);return d})},pl=function(a){ql(a,6,5,function(b,c){b=new URL(b);b.searchParams.set("format","base64json");var d=b.searchParams,e=d.set;c=_.hk(c);for(var f=[],g=0,h=0;h255&&(f[g++]=m&255,m>>=8);f[g++]=m}c=vj(f,3);e.call(d,"p",c);b=b.toString();if(b.length>15360)return!1;(new Image).src=b;return!0})},ql=function(a,b,c,d){if(a.g.length!==0){var e=new URL(jl(a));e.searchParams.delete("format");var f=a.Yb();f&&e.searchParams.set("auth", f);e.searchParams.set("authuser",a.Lb||"0");for(f=0;fb?1:0},Zl=function(a,b){var c=0;a=(0,_.Sc)(String(a)).split(".");b=(0,_.Sc)(String(b)).split(".");for(var d= Math.max(a.length,b.length),e=0;c==0&&e/g,">").replace(/"/g,""").replace(/'/g,"'")},cm=function(a){return a instanceof _.Vc?a:_.xl(bm(String(a)))},dm=function(a){var b={nonce:_.Sa("script",document)};a=_.Va(a).toString();var c=""+a+"\x3c/script>"))}, em=function(a){var b=cm("");return _.xl(a.map(function(c){return _.qj(cm(c))}).join(_.qj(b).toString()))},fm=function(a){return em(a)},im=function(a){for(var b="",c=Object.keys(a),d=0;d":(a=fm(a.map(function(d){return d instanceof _.Vc?d:cm(String(d))})),c+=">"+a.toString()+"");return _.xl(c)},mm=function(a){this.h=this.B=this.l="";this.C=null;this.A=this.j="";this.o=!1;var b;a instanceof mm?(this.o=a.o,nm(this,a.l),this.B=a.B,om(this,a.h),pm(this,a.C),qm(this,a.j),rm(this,sm(a.g)),this.A=a.A):a&&(b=String(a).match(_.yf))?(this.o=!1, nm(this,b[1]||"",!0),this.B=tm(b[2]||""),om(this,b[3]||"",!0),pm(this,b[4]),qm(this,b[5]||"",!0),rm(this,b[6]||"",!0),this.A=tm(b[7]||"")):(this.o=!1,this.g=new um(null,this.o))},vm=function(a){return _.Ba(a)?a.Lc&&(a=a.Lc(),a instanceof _.Vc)?a:cm("zSoyz"):cm(String(a))},wm=function(a,b){b&&b.h?b.h(a):(b=vm(b),a.innerHTML=_.qj(b))},ym=function(a,b){a:if(b=a(b||xm,void 0),a=_.tb(),b&&b.g?a=b.g():(a=a.createElement("DIV"),b=vm(b),a.innerHTML=_.qj(b)),a.childNodes.length==1&&(b=a.firstChild,b.nodeType== 1)){a=b;break a}return a},Am=function(a){var b=document.implementation.createHTMLDocument("");a=zm(a,b);b=b.body;b.appendChild(a);b=(new XMLSerializer).serializeToString(b);b=b.slice(b.indexOf(">")+1,b.lastIndexOf("":f.push(n);c.push(b(f.join(""),g)); e=0;f=[];h=g=null;break;default:f.push(n)}break;default:throw Error();}e===1&&m>=d&&(m=h+1,c.push("<"),e=0,f=[],h=g=null)}return c.join("")},Sm=function(){var a=Mm(Nm(_.ul(_.tl(Om(),function(){return null}).Jd()))),b=Pm().map(function(c){return Qm(c,0)}).filter(function(c){return c>0});b.length>0&&(b=Rm(b),a.h=b);return _.vl(a)},Tm=function(a){return"translate:"+a},Zm=function(a){var b=new Um;b=_.ek(b,1,a.name);var c=Vm(a.startTime);b=_.gj(b,2,c);a=Wm(a.duration);a=_.gj(b,3,a);b=new Xm;return Ym(a, 5,b)},Vm=function(a){var b=new $m;b.setSeconds(Math.floor(a/1E3));a=Math.round(a%1E3*1E6);_.Ki(b,2,a==null?a:_.Mj(a),0);return b},Wm=function(a){var b=new an;b.setSeconds(Math.floor(a/1E3));a=Math.round(a%1E3*1E6);_.Ki(b,2,a==null?a:_.Mj(a),0);return b},bn=function(a){return performance&&performance.mark&&(a=performance.getEntriesByName(a,"mark"),a.length==1)?a[0]:null},cn=function(a,b){return performance&&performance.measure?performance.measure(a,b)||null:null},fn=function(a,b,c){var d=Array.prototype.slice.call(arguments); d.splice(0,2);d="l"+a.toString(16)+"i"+b.toString(16)+(d.length?"-"+d.join("_"):"");dn?dn.push(d):en(d)},kn=function(){var a=gn||(gn=hn('[null,null,null,null,null,"(function(){\'use strict\';var f\\u003dtypeof Object.defineProperties\\u003d\\u003d\\"function\\"?Object.defineProperty:function(a,c,b){if(a\\u003d\\u003dArray.prototype||a\\u003d\\u003dObject.prototype)return a;a[c]\\u003db.value;return a};function g(a){a\\u003d[\\"object\\"\\u003d\\u003dtypeof globalThis\\u0026\\u0026globalThis,a,\\"object\\"\\u003d\\u003dtypeof window\\u0026\\u0026window,\\"object\\"\\u003d\\u003dtypeof self\\u0026\\u0026self,\\"object\\"\\u003d\\u003dtypeof global\\u0026\\u0026global];for(var c\\u003d0;c\\u003ca.length;++c){var b\\u003da[c];if(b\\u0026\\u0026b.Math\\u003d\\u003dMath)return b}throw Error(\\"Cannot find global object\\");}var h\\u003dg(this);\\nfunction k(a,c){if(c)a:{var b\\u003dh;a\\u003da.split(\\".\\");for(var d\\u003d0;d\\u003ca.length-1;d++){var e\\u003da[d];if(!(e in b))break a;b\\u003db[e]}a\\u003da[a.length-1];d\\u003db[a];c\\u003dc(d);c!\\u003dd\\u0026\\u0026c!\\u003dnull\\u0026\\u0026f(b,a,{configurable:!0,writable:!0,value:c})}}k(\\"globalThis\\",function(a){return a||h});/*\\n\\n Copyright Google LLC\\n SPDX-License-Identifier: Apache-2.0\\n*/\\nvar l\\u003dglobalThis.trustedTypes,m;function n(){var a\\u003dnull;if(!l)return a;try{var c\\u003dfunction(b){return b};a\\u003dl.createPolicy(\\"goog#html\\",{createHTML:c,createScript:c,createScriptURL:c})}catch(b){}return a};function p(a){this.g\\u003da}p.prototype.toString\\u003dfunction(){return this.g+\\"\\"};function q(a){m\\u003d\\u003d\\u003dvoid 0\\u0026\\u0026(m\\u003dn());a\\u003dm?m.createScriptURL(a):a;return new p(a)};if(!function(){if(self.origin)return self.origin\\u003d\\u003d\\u003d\\"null\\";if(location.host!\\u003d\\u003d\\"\\")return!1;try{return window.parent.escape(\\"\\"),!1}catch(a){return!0}}())throw Error(\\"sandboxing error\\");\\nwindow.addEventListener(\\"message\\",function(a){var c\\u003da.ports[0];a\\u003da.data;var b\\u003da.callbackName.split(\\".\\"),d\\u003dwindow;b[0]\\u003d\\u003d\\u003d\\"window\\"\\u0026\\u0026b.shift();for(var e\\u003d0;e\\u003cb.length-1;e++)d[b[e]]\\u003d{},d\\u003dd[b[e]];d[b[b.length-1]]\\u003dfunction(r){c.postMessage(JSON.stringify(r))};b\\u003ddocument.createElement(\\"script\\");a\\u003dq(a.url);if(a instanceof p)a\\u003da.g;else throw Error(\\"\\");b.src\\u003da;document.body.appendChild(b)},!0);}).call(this);\\n"]')); if(!a)return null;a=_.zi(_.bj(a,6,void 0,jn));var b;a===null||a===void 0?b=null:b=_.Ua(a);return b},ln=function(a){var b={};a=_.A(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b[c.language]=c.name;return b},mn=function(){},nn=function(){},pn=function(a){_.ob.call(this);this.h=a||_.tb();this.ua=on;this.Z=null;this.bb=!1;this.o=null;this.K=void 0;this.T=this.I=this.G=null;this.Fa=!1},qn=function(a){pn.call(this);a=a||{};this.id=a.id||this.ab();this.uf=a.uf||"";this.he=a.he||null;this.ie=a.ie|| null;this.Te=a.Te||!1;this.className=a.className||null;this.l=null},tn=function(){_.ob.call(this);this.j="closure_frame"+rn++;this.h=[];sn[this.j]=this},un=function(a,b,c,d){_.jb.call(this,d);this.type="key";this.keyCode=a;this.charCode=b;this.repeat=c},vn=function(a,b){_.ob.call(this);a&&this.attach(a,b)},xn=function(a,b,c){Array.isArray(c)&&(c=c.join(" "));var d="aria-"+b;c===""||c==void 0?(wn||(c={},wn=(c.atomic=!1,c.autocomplete="none",c.dropeffect="none",c.haspopup=!1,c.live="off",c.multiline= !1,c.multiselectable=!1,c.orientation="vertical",c.readonly=!1,c.relevant="additions text",c.required=!1,c.sort="none",c.busy=!1,c.disabled=!1,c.hidden=!1,c.invalid="false",c)),c=wn,b in c?a.setAttribute(d,c[b]):a.removeAttribute(d)):a.setAttribute(d,c)},yn=function(){},zn=function(a,b){if(!a)throw Error("Sa`"+a);if(typeof b!=="function")throw Error("Ta`"+b);},Bn=function(a,b,c){pn.call(this,c);if(!b){for(b=this.constructor;b;){var d=_.Ca(b);if(d=An[d])break;b=(b=Object.getPrototypeOf(b.prototype))&& b.constructor}b=d?typeof d.Gb==="function"?d.Gb():new d:null}this.g=b;this.Ob=a!==void 0?a:null},Cn=function(){},Dn=function(a,b,c){Bn.call(this,a,b||Cn.Gb(),c)},En=function(){},Gn=function(a,b,c){Bn.call(this,a,b||En.Gb(),c);Fn(this);this.Ad=!0;(b=this.D())&&this.g.ud(b,!0);this.xc=a!="";a||(this.Ob="")},Hn=function(a,b,c){_.l.call(this);this.h=a;this.l=b||0;this.j=c;this.g=(0,_.x)(this.gi,this)},In=function(){_.ob.call(this);this.g=0;this.endTime=this.startTime=null},Kn=function(a,b,c,d,e){Jn.call(this, b,c,d,e);this.element=a},Ln=function(a,b,c,d,e){typeof b==="number"&&(b=[b]);typeof c==="number"&&(c=[c]);Kn.call(this,a,b,c,d,e);if(b.length!=1||c.length!=1)throw Error("Za");this.A=-1},Mn=function(a,b,c){Ln.call(this,a,1,0,b,c)},Nn=function(a,b,c){Ln.call(this,a,0,1,b,c)},On=function(a,b){_.ob.call(this);this.C=new _.Qb(this);this.Ic(a||null);b&&(this.Mc=b)},Pn=function(a){_.ob.call(this);this.g=a;this.h=_.pb(this.g,"focus",this,!0);this.j=_.pb(this.g,"blur",this,!0)},Qn=function(){},Rn=function(a, b,c){this.element=a;this.j=b;this.l=c},Sn=function(a,b){this.g=a instanceof Kl?a:new Kl(a,b)},Tn=function(a,b){this.B=b||void 0;On.call(this,a)},Vn=function(a,b,c){this.X=c||(a?_.tb(Un(a)):_.tb());Tn.call(this,this.X.W("DIV",{style:"position:absolute;display:none;"}));this.ad=new Kl(1,1);this.G=new Set;this.I=null;a&&this.attach(a);b!=null&&this.cb(b)},Wn=function(a){a=a.className;return typeof a==="string"&&a.match(/\S+/g)||[]},Yn=function(a,b){var c=Wn(a),d=Array.prototype.slice.call(arguments, 1),e=c.length+d.length;Xn(c,d);a.className=c.join(" ");return c.length==e},$n=function(a,b){var c=Wn(a),d=Array.prototype.slice.call(arguments,1),e=Zn(c,d);a.className=e.join(" ");return e.length==c.length-d.length},Xn=function(a,b){for(var c=0;cf)for(;f=b.length)&&typeof a==="object"&&a!==null){var f=b[d];if(f.endsWith("[]")){if(f=f.slice(0,-2),f in a&&Array.isArray(a[f]))for(a=_.A(a[f]),f=a.next();!f.done;f=a.next())co(f.value,b,c,d+1,e)}else if(f==="*"){if(typeof a==="object"&&a!==null&&!Array.isArray(a)){b=Object.keys(a).filter(function(u){return!u.startsWith("_")&& !e.has(u)});f={};for(var g=_.A(b),h=g.next();!h.done;h=g.next())h=h.value,f[h]=a[h];f=_.A(Object.entries(f));for(g=f.next();!g.done;g=f.next()){h=_.A(g.value);g=h.next().value;h=h.next().value;for(var m=[],n=_.A(c.slice(d)),q=n.next();!q.done;q=n.next())q=q.value,q==="*"?m.push(g):m.push(q);M(a,m,h)}c=_.A(b);for(d=c.next();!d.done;d=c.next())delete a[d.value]}}else f in a&&co(a[f],b,c,d+1,e)}},fo=function(a){if(typeof a!=="string")throw Error("eb");return a},go=function(a){var b={},c=O(a,["operationName"]); c!=null&&M(b,["operationName"],c);a=O(a,["resourceName"]);a!=null&&M(b,["_url","resourceName"],a);return b},ho=function(a){var b={},c=O(a,["generatedSamples"]);c!=null&&(Array.isArray(c)&&(c=c.map(function(d){var e={},f=O(d,["video"]);if(f!=null){d={};var g=O(f,["uri"]);g!=null&&M(d,["uri"],g);g=O(f,["encodedVideo"]);g!=null&&M(d,["videoBytes"],fo(g));f=O(f,["encoding"]);f!=null&&M(d,["mimeType"],f);M(e,["video"],d)}return e})),M(b,["generatedVideos"],c));c=O(a,["raiMediaFilteredCount"]);c!=null&& M(b,["raiMediaFilteredCount"],c);a=O(a,["raiMediaFilteredReasons"]);a!=null&&M(b,["raiMediaFilteredReasons"],a);return b},io=function(a){var b={},c=O(a,["videos"]);c!=null&&(Array.isArray(c)&&(c=c.map(function(d){var e={},f=O(d,["_self"]);if(f!=null){d={};var g=O(f,["gcsUri"]);g!=null&&M(d,["uri"],g);g=O(f,["bytesBase64Encoded"]);g!=null&&M(d,["videoBytes"],fo(g));f=O(f,["mimeType"]);f!=null&&M(d,["mimeType"],f);M(e,["video"],d)}return e})),M(b,["generatedVideos"],c));c=O(a,["raiMediaFilteredCount"]); c!=null&&M(b,["raiMediaFilteredCount"],c);a=O(a,["raiMediaFilteredReasons"]);a!=null&&M(b,["raiMediaFilteredReasons"],a);return b},jo=function(a){var b={};a=O(a,["operationName"]);a!=null&&M(b,["_url","operationName"],a);return b},ko=function(a){var b={};a=O(a,["operationName"]);a!=null&&M(b,["_url","operationName"],a);return b},lo=function(a,b){if(!b||typeof b!=="string")throw Error("fb");if(b.includes("..")||b.includes("?")||b.includes("&"))throw Error("gb");return P(a)?b.startsWith("publishers/")|| b.startsWith("projects/")||b.startsWith("models/")?b:b.indexOf("/")>=0?(a=b.split("/",2),"publishers/"+a[0]+"/models/"+a[1]):"publishers/google/models/"+b:b.startsWith("models/")||b.startsWith("tunedModels/")?b:"models/"+b},mo=function(a,b){return(b=lo(a,b))?b.startsWith("publishers/")&&P(a)?"projects/"+a.R.Qa+"/locations/"+a.R.location+"/"+b:b.startsWith("models/")&&P(a)?"projects/"+a.R.Qa+"/locations/"+a.R.location+"/publishers/google/"+b:b:""},no=function(a){if(a===null||a===void 0)throw Error("hb"); if(typeof a==="object")return a;if(typeof a==="string")return{text:a};throw Error("ib`"+typeof a);},oo=function(a){if(a===null||a===void 0||Array.isArray(a)&&a.length===0)throw Error("jb");return Array.isArray(a)?a.map(function(b){return no(b)}):[no(a)]},po=function(a){return a!==null&&a!==void 0&&typeof a==="object"&&"parts"in a&&Array.isArray(a.parts)},qo=function(a){return a!==null&&a!==void 0&&typeof a==="object"&&"functionCall"in a},ro=function(a){return a!==null&&a!==void 0&&typeof a==="object"&& "functionResponse"in a},so=function(a){if(a===null||a===void 0)throw Error("kb");return po(a)?a:{role:"user",parts:oo(a)}},to=function(a,b){return b?P(a)&&Array.isArray(b)?b.flatMap(function(c){c=so(c);return c.parts&&c.parts.length>0&&c.parts[0].text!==void 0?[c.parts[0].text]:[]}):P(a)?(a=so(b),a.parts&&a.parts.length>0&&a.parts[0].text!==void 0?[a.parts[0].text]:[]):Array.isArray(b)?b.map(function(c){return so(c)}):[so(b)]:[]},uo=function(a){if(a===null||a===void 0||Array.isArray(a)&&a.length=== 0)throw Error("lb");if(!Array.isArray(a)){if(qo(a)||ro(a))throw Error("mb");return[so(a)]}var b=[],c=[],d=po(a[0]);a=_.A(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=po(e);if(f!=d)throw Error("nb");if(f)b.push(e);else{if(qo(e)||ro(e))throw Error("ob");c.push(e)}}d||b.push({role:"user",parts:oo(c)});return b},wo=function(a,b){a.includes("null")&&(b.nullable=!0);a=a.filter(function(d){return d!=="null"});if(a.length===1)b.type=Object.values(vo).includes(a[0].toUpperCase())?a[0].toUpperCase(): "TYPE_UNSPECIFIED";else{b.anyOf=[];a=_.A(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b.anyOf.push({type:Object.values(vo).includes(c.toUpperCase())?c.toUpperCase():"TYPE_UNSPECIFIED"})}},xo=function(a){var b={},c=["items"],d=["anyOf"],e=["properties"];if(a.type&&a.anyOf)throw Error("pb");var f=a.anyOf;f!=null&&f.length==2&&(f[0].type==="null"?(b.nullable=!0,a=f[1]):f[1].type==="null"&&(b.nullable=!0,a=f[0]));a.type instanceof Array&&wo(a.type,b);f=_.A(Object.entries(a));for(var g=f.next();!g.done;g= f.next()){var h=_.A(g.value);g=h.next().value;var m=h=h.next().value;if(m!=null)if(g=="type"){if(m==="null")throw Error("qb");m instanceof Array||(b.type=Object.values(vo).includes(m.toUpperCase())?m.toUpperCase():"TYPE_UNSPECIFIED")}else if(c.includes(g))b[g]=xo(m);else if(d.includes(g)){h=[];m=_.A(m);for(var n=m.next();!n.done;n=m.next())n=n.value,n.type=="null"?b.nullable=!0:h.push(xo(n));b[g]=h}else if(e.includes(g)){h={};m=_.A(Object.entries(m));for(n=m.next();!n.done;n=m.next()){var q=_.A(n.value); n=q.next().value;q=q.next().value;h[n]=xo(q)}b[g]=h}else g!=="additionalProperties"&&(b[g]=m)}return b},yo=function(a){if(typeof a==="object")return a;if(typeof a==="string")return{voiceConfig:{prebuiltVoiceConfig:{voiceName:a}}};throw Error("rb`"+typeof a);},zo=function(a){if(a.functionDeclarations)for(var b=_.A(a.functionDeclarations),c=b.next();!c.done;c=b.next())c=c.value,c.parameters&&(Object.keys(c.parameters).includes("$schema")?c.parametersJsonSchema||(c.parametersJsonSchema=c.parameters, delete c.parameters):c.parameters=xo(c.parameters)),c.response&&(Object.keys(c.response).includes("$schema")?c.responseJsonSchema||(c.responseJsonSchema=c.response,delete c.response):c.response=xo(c.response));return a},Ao=function(a){if(a===void 0||a===null)throw Error("tb");if(!Array.isArray(a))throw Error("ub");var b=[];a=_.A(a);for(var c=a.next();!c.done;c=a.next())b.push(c.value);return b},Bo=function(a,b){if(typeof b!=="string")throw Error("vb");var c=!b.startsWith("cachedContents/")&&b.split("/").length=== 1;return P(a)?b.startsWith("projects/")?b:b.startsWith("locations/")?"projects/"+a.R.Qa+"/"+b:b.startsWith("cachedContents/")?"projects/"+a.R.Qa+"/locations/"+a.R.location+"/"+b:c?"projects/"+a.R.Qa+"/locations/"+a.R.location+"/cachedContents/"+b:b:c?"cachedContents/"+b:b},Co=function(a){switch(a){case "STATE_UNSPECIFIED":return"JOB_STATE_UNSPECIFIED";case "CREATING":return"JOB_STATE_RUNNING";case "ACTIVE":return"JOB_STATE_SUCCEEDED";case "FAILED":return"JOB_STATE_FAILED";default:return a}},Do=function(a){if(a!== null&&a!==void 0&&typeof a==="object"&&"name"in a)var b=a.name;if(a!==null&&a!==void 0&&typeof a==="object"&&"uri"in a&&(b=a.uri,b===void 0))return;if(a!==null&&a!==void 0&&typeof a==="object"&&"video"in a){var c;b=(c=a.video)==null?void 0:c.uri;if(b===void 0)return}typeof a==="string"&&(b=a);if(b===void 0)throw Error("wb");if(b.startsWith("https://")){a=b.split("files/")[1].match(/[a-z0-9]+/);if(a===null)throw Error("xb`"+b);b=a[0]}else b.startsWith("files/")&&(b=b.split("files/")[1]);return b}, Eo=function(a,b){return P(a)?b?"publishers/google/models":"models":b?"models":"tunedModels"},Fo=function(a){for(var b=_.A(["models","tunedModels","publisherModels"]),c=b.next();!c.done;c=b.next())if(c=c.value,a!==null&&typeof a==="object"&&c in a)return a[c];return[]},Go=function(a,b){if(typeof b==="string")if(P(a))if(b.startsWith("gs://"))b={format:"jsonl",gcsUri:[b]};else if(b.startsWith("bq://"))b={format:"bigquery",bigqueryUri:b};else throw Error("yb`"+b);else if(b.startsWith("files/"))b={fileName:b}; else throw Error("zb`"+b);else if(Array.isArray(b)){if(P(a))throw Error("Ab");b={inlinedRequests:b}}var c=[b.gcsUri,b.bigqueryUri].filter(Boolean).length,d=[b.inlinedRequests,b.fileName].filter(Boolean).length;if(P(a)){if(d>0||c!==1)throw Error("Bb");}else if(c>0||d!==1)throw Error("Cb");return b},Ho=function(a){if(typeof a!=="object"||a===null)return{};var b=a.inlinedResponses;if(typeof b!=="object"||b===null)return a;var c=b.inlinedResponses;if(!Array.isArray(c)||c.length===0)return a;b=!1;c=_.A(c); for(var d=c.next();!d.done;d=c.next())if(d=d.value,typeof d==="object"&&d!==null&&(d=d.response,typeof d==="object"&&d!==null&&d.embedding!==void 0)){b=!0;break}b&&(a.inlinedEmbedContentResponses=a.inlinedResponses,delete a.inlinedResponses);return a},Io=function(a,b){if(!P(a)){if(/batches\/[^/]+$/.test(b))return b.split("/").pop();throw Error("Eb`"+b);}if(/^projects\/[^/]+\/locations\/[^/]+\/batchPredictionJobs\/[^/]+$/.test(b))return b.split("/").pop();if(/^\d+$/.test(b))return b;throw Error("Eb`"+ b);},Jo=function(a){return a==="BATCH_STATE_UNSPECIFIED"?"JOB_STATE_UNSPECIFIED":a==="BATCH_STATE_PENDING"?"JOB_STATE_PENDING":a==="BATCH_STATE_RUNNING"?"JOB_STATE_RUNNING":a==="BATCH_STATE_SUCCEEDED"?"JOB_STATE_SUCCEEDED":a==="BATCH_STATE_FAILED"?"JOB_STATE_FAILED":a==="BATCH_STATE_CANCELLED"?"JOB_STATE_CANCELLED":a==="BATCH_STATE_EXPIRED"?"JOB_STATE_EXPIRED":a},Ko=function(a){return a.includes("gemini")&&a!=="gemini-embedding-001"||a.includes("maas")},Mo=function(a){var b={},c=O(a,["responsesFile"]); c!=null&&M(b,["fileName"],c);c=O(a,["inlinedResponses","inlinedResponses"]);c!=null&&(Array.isArray(c)&&(c=c.map(function(d){var e={},f=O(d,["response"]);f!=null&&M(e,["response"],Lo(f));f=O(d,["metadata"]);f!=null&&M(e,["metadata"],f);d=O(d,["error"]);d!=null&&M(e,["error"],d);return e})),M(b,["inlinedResponses"],c));a=O(a,["inlinedEmbedContentResponses","inlinedResponses"]);a!=null&&(Array.isArray(a)&&(a=a.map(function(d){return d})),M(b,["inlinedEmbedContentResponses"],a));return b},No=function(a){var b= {},c=O(a,["name"]);c!=null&&M(b,["name"],c);c=O(a,["metadata","displayName"]);c!=null&&M(b,["displayName"],c);c=O(a,["metadata","state"]);c!=null&&M(b,["state"],Jo(c));c=O(a,["metadata","createTime"]);c!=null&&M(b,["createTime"],c);c=O(a,["metadata","endTime"]);c!=null&&M(b,["endTime"],c);c=O(a,["metadata","updateTime"]);c!=null&&M(b,["updateTime"],c);c=O(a,["metadata","model"]);c!=null&&M(b,["model"],c);a=O(a,["metadata","output"]);a!=null&&M(b,["dest"],Mo(Ho(a)));return b},Oo=function(a){var b= {},c=O(a,["name"]);c!=null&&M(b,["name"],c);c=O(a,["displayName"]);c!=null&&M(b,["displayName"],c);c=O(a,["state"]);c!=null&&M(b,["state"],Jo(c));c=O(a,["error"]);c!=null&&M(b,["error"],c);c=O(a,["createTime"]);c!=null&&M(b,["createTime"],c);c=O(a,["startTime"]);c!=null&&M(b,["startTime"],c);c=O(a,["endTime"]);c!=null&&M(b,["endTime"],c);c=O(a,["updateTime"]);c!=null&&M(b,["updateTime"],c);c=O(a,["model"]);c!=null&&M(b,["model"],c);var d=O(a,["inputConfig"]);if(d!=null){c={};var e=O(d,["instancesFormat"]); e!=null&&M(c,["format"],e);e=O(d,["gcsSource","uris"]);e!=null&&M(c,["gcsUri"],e);d=O(d,["bigquerySource","inputUri"]);d!=null&&M(c,["bigqueryUri"],d);M(b,["src"],c)}c=O(a,["outputConfig"]);c!=null&&(d=Ho(c),c={},e=O(d,["predictionsFormat"]),e!=null&&M(c,["format"],e),e=O(d,["gcsDestination","outputUriPrefix"]),e!=null&&M(c,["gcsUri"],e),d=O(d,["bigqueryDestination","outputUri"]),d!=null&&M(c,["bigqueryUri"],d),M(b,["dest"],c));a=O(a,["completionStats"]);a!=null&&M(b,["completionStats"],a);return b}, Qo=function(a,b){var c={};if(O(b,["format"])!==void 0)throw Error("Ob");if(O(b,["gcsUri"])!==void 0)throw Error("Pb");if(O(b,["bigqueryUri"])!==void 0)throw Error("Qb");var d=O(b,["fileName"]);d!=null&&M(c,["fileName"],d);b=O(b,["inlinedRequests"]);b!=null&&(Array.isArray(b)&&(b=b.map(function(e){return Po(a,e)})),M(c,["requests","requests"],b));return c},So=function(a){var b={},c=O(a,["content"]);c!=null&&M(b,["content"],c);c=O(a,["citationMetadata"]);c!=null&&M(b,["citationMetadata"],Ro(c));c=O(a, ["tokenCount"]);c!=null&&M(b,["tokenCount"],c);c=O(a,["finishReason"]);c!=null&&M(b,["finishReason"],c);c=O(a,["groundingMetadata"]);c!=null&&M(b,["groundingMetadata"],c);c=O(a,["avgLogprobs"]);c!=null&&M(b,["avgLogprobs"],c);c=O(a,["index"]);c!=null&&M(b,["index"],c);c=O(a,["logprobsResult"]);c!=null&&M(b,["logprobsResult"],c);c=O(a,["safetyRatings"]);c!=null&&(Array.isArray(c)&&(c=c.map(function(d){return d})),M(b,["safetyRatings"],c));a=O(a,["urlContextMetadata"]);a!=null&&M(b,["urlContextMetadata"], a);return b},Ro=function(a){var b={};a=O(a,["citationSources"]);a!=null&&(Array.isArray(a)&&(a=a.map(function(c){return c})),M(b,["citations"],a));return b},To=function(a){var b={},c=O(a,["parts"]);c!=null&&(Array.isArray(c)&&(c=c.map(function(d){var e={},f=O(d,["mediaResolution"]);f!=null&&M(e,["mediaResolution"],f);f=O(d,["codeExecutionResult"]);f!=null&&M(e,["codeExecutionResult"],f);f=O(d,["executableCode"]);f!=null&&M(e,["executableCode"],f);var g=O(d,["fileData"]);if(g!=null){f={};if(O(g,["displayName"])!== void 0)throw Error("Sb");var h=O(g,["fileUri"]);h!=null&&M(f,["fileUri"],h);g=O(g,["mimeType"]);g!=null&&M(f,["mimeType"],g);M(e,["fileData"],f)}f=O(d,["functionCall"]);if(f!=null){g={};h=O(f,["id"]);h!=null&&M(g,["id"],h);h=O(f,["args"]);h!=null&&M(g,["args"],h);h=O(f,["name"]);h!=null&&M(g,["name"],h);if(O(f,["partialArgs"])!==void 0)throw Error("Wb");if(O(f,["willContinue"])!==void 0)throw Error("Xb");M(e,["functionCall"],g)}f=O(d,["functionResponse"]);f!=null&&M(e,["functionResponse"],f);g=O(d, ["inlineData"]);if(g!=null){f={};h=O(g,["data"]);h!=null&&M(f,["data"],h);if(O(g,["displayName"])!==void 0)throw Error("Sb");g=O(g,["mimeType"]);g!=null&&M(f,["mimeType"],g);M(e,["inlineData"],f)}f=O(d,["text"]);f!=null&&M(e,["text"],f);f=O(d,["thought"]);f!=null&&M(e,["thought"],f);f=O(d,["thoughtSignature"]);f!=null&&M(e,["thoughtSignature"],f);f=O(d,["videoMetadata"]);f!=null&&M(e,["videoMetadata"],f);f=O(d,["toolCall"]);f!=null&&M(e,["toolCall"],f);f=O(d,["toolResponse"]);f!=null&&M(e,["toolResponse"], f);d=O(d,["partMetadata"]);d!=null&&M(e,["partMetadata"],d);return e})),M(b,["parts"],c));a=O(a,["role"]);a!=null&&M(b,["role"],a);return b},Uo=function(a,b){var c={},d=O(b,["model"]);d!=null&&M(c,["_url","model"],lo(a,d));d=O(b,["src"]);d!=null&&M(c,["batch","inputConfig"],Qo(a,Go(a,d)));a=O(b,["config"]);if(a!=null&&(b=O(a,["displayName"]),c!==void 0&&b!=null&&M(c,["batch","displayName"],b),O(a,["dest"])!==void 0))throw Error("Tb");return c},Vo=function(a,b){var c={},d=O(b,["model"]);d!=null&&M(c, ["model"],lo(a,d));d=O(b,["src"]);if(d!=null){a=Go(a,d);d={};var e=O(a,["format"]);e!=null&&M(d,["instancesFormat"],e);e=O(a,["gcsUri"]);e!=null&&M(d,["gcsSource","uris"],e);e=O(a,["bigqueryUri"]);e!=null&&M(d,["bigquerySource","inputUri"],e);if(O(a,["fileName"])!==void 0)throw Error("Lb");if(O(a,["inlinedRequests"])!==void 0)throw Error("Rb");M(c,["inputConfig"],d)}b=O(b,["config"]);if(b!=null&&(a=O(b,["displayName"]),c!==void 0&&a!=null&&M(c,["displayName"],a),b=O(b,["dest"]),c!==void 0&&b!=null)){if(typeof b=== "string")if(b.startsWith("gs://"))b={format:"jsonl",gcsUri:b};else if(b.startsWith("bq://"))b={format:"bigquery",bigqueryUri:b};else throw Error("Db`"+b);a={};d=O(b,["format"]);d!=null&&M(a,["predictionsFormat"],d);d=O(b,["gcsUri"]);d!=null&&M(a,["gcsDestination","outputUriPrefix"],d);d=O(b,["bigqueryUri"]);d!=null&&M(a,["bigqueryDestination","outputUri"],d);if(O(b,["fileName"])!==void 0)throw Error("Lb");if(O(b,["inlinedResponses"])!==void 0)throw Error("Mb");if(O(b,["inlinedEmbedContentResponses"])!== void 0)throw Error("Nb");M(c,["outputConfig"],a)}return c},Xo=function(a,b){var c={},d=O(b,["model"]);d!=null&&M(c,["_url","model"],lo(a,d));var e=O(b,["src"]);if(e!=null){d={};var f=O(e,["fileName"]);f!=null&&M(d,["file_name"],f);e=O(e,["inlinedRequests"]);e!=null&&M(d,["requests"],Wo(a,e));M(c,["batch","inputConfig"],d)}a=O(b,["config"]);a!=null&&(a=O(a,["displayName"]),c!==void 0&&a!=null&&M(c,["batch","displayName"],a));return c},Yo=function(a,b){var c={};b=O(b,["name"]);b!=null&&M(c,["_url", "name"],Io(a,b));return c},Zo=function(a,b){var c={};b=O(b,["name"]);b!=null&&M(c,["_url","name"],Io(a,b));return c},Wo=function(a,b){var c={},d=O(b,["contents"]);d!=null&&(a=to(a,d),Array.isArray(a)&&(a=a.map(function(e){return e})),M(c,["requests[]","request","content"],a));b=O(b,["config"]);b!=null&&(M(c,["_self"],$o(b,c)),eo(c));return c},$o=function(a,b){var c=O(a,["taskType"]);b!==void 0&&c!=null&&M(b,["requests[]","taskType"],c);c=O(a,["title"]);b!==void 0&&c!=null&&M(b,["requests[]","title"], c);c=O(a,["outputDimensionality"]);b!==void 0&&c!=null&&M(b,["requests[]","outputDimensionality"],c);if(O(a,["mimeType"])!==void 0)throw Error("Ub");if(O(a,["autoTruncate"])!==void 0)throw Error("Vb");return{}},dp=function(a,b,c){var d={},e=O(b,["systemInstruction"]);c!==void 0&&e!=null&&M(c,["systemInstruction"],To(so(e)));e=O(b,["temperature"]);e!=null&&M(d,["temperature"],e);e=O(b,["topP"]);e!=null&&M(d,["topP"],e);e=O(b,["topK"]);e!=null&&M(d,["topK"],e);e=O(b,["candidateCount"]);e!=null&&M(d, ["candidateCount"],e);e=O(b,["maxOutputTokens"]);e!=null&&M(d,["maxOutputTokens"],e);e=O(b,["stopSequences"]);e!=null&&M(d,["stopSequences"],e);e=O(b,["responseLogprobs"]);e!=null&&M(d,["responseLogprobs"],e);e=O(b,["logprobs"]);e!=null&&M(d,["logprobs"],e);e=O(b,["presencePenalty"]);e!=null&&M(d,["presencePenalty"],e);e=O(b,["frequencyPenalty"]);e!=null&&M(d,["frequencyPenalty"],e);e=O(b,["seed"]);e!=null&&M(d,["seed"],e);e=O(b,["responseMimeType"]);e!=null&&M(d,["responseMimeType"],e);e=O(b,["responseSchema"]); e!=null&&M(d,["responseSchema"],xo(e));e=O(b,["responseJsonSchema"]);e!=null&&M(d,["responseJsonSchema"],e);if(O(b,["routingConfig"])!==void 0)throw Error("Zb");if(O(b,["modelSelectionConfig"])!==void 0)throw Error("$b");e=O(b,["safetySettings"]);c!==void 0&&e!=null&&(Array.isArray(e)&&(e=e.map(function(f){var g={},h=O(f,["category"]);h!=null&&M(g,["category"],h);if(O(f,["method"])!==void 0)throw Error("lc");f=O(f,["threshold"]);f!=null&&M(g,["threshold"],f);return g})),M(c,["safetySettings"],e)); e=O(b,["tools"]);c!==void 0&&e!=null&&(e=Ao(e),Array.isArray(e)&&(e=e.map(function(f){return ap(zo(f))})),M(c,["tools"],e));e=O(b,["toolConfig"]);c!==void 0&&e!=null&&M(c,["toolConfig"],bp(e));if(O(b,["labels"])!==void 0)throw Error("ac");e=O(b,["cachedContent"]);c!==void 0&&e!=null&&M(c,["cachedContent"],Bo(a,e));a=O(b,["responseModalities"]);a!=null&&M(d,["responseModalities"],a);a=O(b,["mediaResolution"]);a!=null&&M(d,["mediaResolution"],a);a=O(b,["speechConfig"]);a!=null&&M(d,["speechConfig"], yo(a));if(O(b,["audioTimestamp"])!==void 0)throw Error("bc");a=O(b,["thinkingConfig"]);a!=null&&M(d,["thinkingConfig"],a);a=O(b,["imageConfig"]);a!=null&&M(d,["imageConfig"],cp(a));a=O(b,["enableEnhancedCivicAnswers"]);a!=null&&M(d,["enableEnhancedCivicAnswers"],a);if(O(b,["modelArmorConfig"])!==void 0)throw Error("cc");b=O(b,["serviceTier"]);c!==void 0&&b!=null&&M(c,["serviceTier"],b);return d},Lo=function(a){var b={},c=O(a,["sdkHttpResponse"]);c!=null&&M(b,["sdkHttpResponse"],c);c=O(a,["candidates"]); c!=null&&(Array.isArray(c)&&(c=c.map(function(d){return So(d)})),M(b,["candidates"],c));c=O(a,["modelVersion"]);c!=null&&M(b,["modelVersion"],c);c=O(a,["promptFeedback"]);c!=null&&M(b,["promptFeedback"],c);c=O(a,["responseId"]);c!=null&&M(b,["responseId"],c);c=O(a,["usageMetadata"]);c!=null&&M(b,["usageMetadata"],c);a=O(a,["modelStatus"]);a!=null&&M(b,["modelStatus"],a);return b},ep=function(a,b){var c={};b=O(b,["name"]);b!=null&&M(c,["_url","name"],Io(a,b));return c},fp=function(a,b){var c={};b= O(b,["name"]);b!=null&&M(c,["_url","name"],Io(a,b));return c},gp=function(a){var b={},c=O(a,["authConfig"]);if(c!=null){var d={},e=O(c,["apiKey"]);e!=null&&M(d,["apiKey"],e);if(O(c,["apiKeyConfig"])!==void 0)throw Error("Fb");if(O(c,["authType"])!==void 0)throw Error("Gb");if(O(c,["googleServiceAccountConfig"])!==void 0)throw Error("Hb");if(O(c,["httpBasicAuthConfig"])!==void 0)throw Error("Ib");if(O(c,["oauthConfig"])!==void 0)throw Error("Jb");if(O(c,["oidcConfig"])!==void 0)throw Error("Kb");M(b, ["authConfig"],d)}a=O(a,["enableWidget"]);a!=null&&M(b,["enableWidget"],a);return b},hp=function(a){var b={},c=O(a,["searchTypes"]);c!=null&&M(b,["searchTypes"],c);if(O(a,["blockingConfidence"])!==void 0)throw Error("dc");if(O(a,["excludeDomains"])!==void 0)throw Error("ec");a=O(a,["timeRangeFilter"]);a!=null&&M(b,["timeRangeFilter"],a);return b},cp=function(a){var b={},c=O(a,["aspectRatio"]);c!=null&&M(b,["aspectRatio"],c);c=O(a,["imageSize"]);c!=null&&M(b,["imageSize"],c);if(O(a,["personGeneration"])!== void 0)throw Error("fc");if(O(a,["prominentPeople"])!==void 0)throw Error("gc");if(O(a,["outputMimeType"])!==void 0)throw Error("hc");if(O(a,["outputCompressionQuality"])!==void 0)throw Error("ic");if(O(a,["imageOutputOptions"])!==void 0)throw Error("jc");return b},Po=function(a,b){var c={},d=O(b,["model"]);d!=null&&M(c,["request","model"],lo(a,d));d=O(b,["contents"]);d!=null&&(d=uo(d),Array.isArray(d)&&(d=d.map(function(e){return To(e)})),M(c,["request","contents"],d));d=O(b,["metadata"]);d!=null&& M(c,["metadata"],d);b=O(b,["config"]);b!=null&&M(c,["request","generationConfig"],dp(a,b,O(c,["request"],{})));return c},ip=function(a){var b={};a=O(a,["config"]);if(a!=null){var c=O(a,["pageSize"]);b!==void 0&&c!=null&&M(b,["_query","pageSize"],c);c=O(a,["pageToken"]);b!==void 0&&c!=null&&M(b,["_query","pageToken"],c);if(O(a,["filter"])!==void 0)throw Error("kc");}return b},jp=function(a){var b={};a=O(a,["config"]);if(a!=null){var c=O(a,["pageSize"]);b!==void 0&&c!=null&&M(b,["_query","pageSize"], c);c=O(a,["pageToken"]);b!==void 0&&c!=null&&M(b,["_query","pageToken"],c);a=O(a,["filter"]);b!==void 0&&a!=null&&M(b,["_query","filter"],a)}return b},kp=function(a){var b={},c=O(a,["sdkHttpResponse"]);c!=null&&M(b,["sdkHttpResponse"],c);c=O(a,["nextPageToken"]);c!=null&&M(b,["nextPageToken"],c);a=O(a,["operations"]);a!=null&&(Array.isArray(a)&&(a=a.map(function(d){return No(d)})),M(b,["batchJobs"],a));return b},lp=function(a){var b={},c=O(a,["sdkHttpResponse"]);c!=null&&M(b,["sdkHttpResponse"],c); c=O(a,["nextPageToken"]);c!=null&&M(b,["nextPageToken"],c);a=O(a,["batchPredictionJobs"]);a!=null&&(Array.isArray(a)&&(a=a.map(function(d){return Oo(d)})),M(b,["batchJobs"],a));return b},bp=function(a){var b={},c=O(a,["retrievalConfig"]);c!=null&&M(b,["retrievalConfig"],c);c=O(a,["functionCallingConfig"]);if(c!=null){var d={},e=O(c,["allowedFunctionNames"]);e!=null&&M(d,["allowedFunctionNames"],e);e=O(c,["mode"]);e!=null&&M(d,["mode"],e);if(O(c,["streamFunctionCallArguments"])!==void 0)throw Error("Yb"); M(b,["functionCallingConfig"],d)}a=O(a,["includeServerSideToolInvocations"]);a!=null&&M(b,["includeServerSideToolInvocations"],a);return b},ap=function(a){var b={};if(O(a,["retrieval"])!==void 0)throw Error("mc");var c=O(a,["computerUse"]);c!=null&&M(b,["computerUse"],c);c=O(a,["fileSearch"]);c!=null&&M(b,["fileSearch"],c);c=O(a,["googleSearch"]);c!=null&&M(b,["googleSearch"],hp(c));c=O(a,["googleMaps"]);c!=null&&M(b,["googleMaps"],gp(c));c=O(a,["codeExecution"]);c!=null&&M(b,["codeExecution"],c); if(O(a,["enterpriseWebSearch"])!==void 0)throw Error("nc");c=O(a,["functionDeclarations"]);c!=null&&(Array.isArray(c)&&(c=c.map(function(d){return d})),M(b,["functionDeclarations"],c));c=O(a,["googleSearchRetrieval"]);c!=null&&M(b,["googleSearchRetrieval"],c);if(O(a,["parallelAiSearch"])!==void 0)throw Error("oc");c=O(a,["urlContext"]);c!=null&&M(b,["urlContext"],c);a=O(a,["mcpServers"]);a!=null&&(Array.isArray(a)&&(a=a.map(function(d){return d})),M(b,["mcpServers"],a));return b},mp=function(a){var b= {},c=O(a,["parts"]);c!=null&&(Array.isArray(c)&&(c=c.map(function(d){var e={},f=O(d,["mediaResolution"]);f!=null&&M(e,["mediaResolution"],f);f=O(d,["codeExecutionResult"]);f!=null&&M(e,["codeExecutionResult"],f);f=O(d,["executableCode"]);f!=null&&M(e,["executableCode"],f);var g=O(d,["fileData"]);if(g!=null){f={};if(O(g,["displayName"])!==void 0)throw Error("Sb");var h=O(g,["fileUri"]);h!=null&&M(f,["fileUri"],h);g=O(g,["mimeType"]);g!=null&&M(f,["mimeType"],g);M(e,["fileData"],f)}f=O(d,["functionCall"]); if(f!=null){g={};h=O(f,["id"]);h!=null&&M(g,["id"],h);h=O(f,["args"]);h!=null&&M(g,["args"],h);h=O(f,["name"]);h!=null&&M(g,["name"],h);if(O(f,["partialArgs"])!==void 0)throw Error("Wb");if(O(f,["willContinue"])!==void 0)throw Error("Xb");M(e,["functionCall"],g)}f=O(d,["functionResponse"]);f!=null&&M(e,["functionResponse"],f);g=O(d,["inlineData"]);if(g!=null){f={};h=O(g,["data"]);h!=null&&M(f,["data"],h);if(O(g,["displayName"])!==void 0)throw Error("Sb");g=O(g,["mimeType"]);g!=null&&M(f,["mimeType"], g);M(e,["inlineData"],f)}f=O(d,["text"]);f!=null&&M(e,["text"],f);f=O(d,["thought"]);f!=null&&M(e,["thought"],f);f=O(d,["thoughtSignature"]);f!=null&&M(e,["thoughtSignature"],f);f=O(d,["videoMetadata"]);f!=null&&M(e,["videoMetadata"],f);f=O(d,["toolCall"]);f!=null&&M(e,["toolCall"],f);f=O(d,["toolResponse"]);f!=null&&M(e,["toolResponse"],f);d=O(d,["partMetadata"]);d!=null&&M(e,["partMetadata"],d);return e})),M(b,["parts"],c));a=O(a,["role"]);a!=null&&M(b,["role"],a);return b},np=function(a){var b= {},c=O(a,["parts"]);c!=null&&(Array.isArray(c)&&(c=c.map(function(d){var e={},f=O(d,["mediaResolution"]);f!=null&&M(e,["mediaResolution"],f);f=O(d,["codeExecutionResult"]);f!=null&&M(e,["codeExecutionResult"],f);f=O(d,["executableCode"]);f!=null&&M(e,["executableCode"],f);f=O(d,["fileData"]);f!=null&&M(e,["fileData"],f);f=O(d,["functionCall"]);f!=null&&M(e,["functionCall"],f);f=O(d,["functionResponse"]);f!=null&&M(e,["functionResponse"],f);f=O(d,["inlineData"]);f!=null&&M(e,["inlineData"],f);f=O(d, ["text"]);f!=null&&M(e,["text"],f);f=O(d,["thought"]);f!=null&&M(e,["thought"],f);f=O(d,["thoughtSignature"]);f!=null&&M(e,["thoughtSignature"],f);f=O(d,["videoMetadata"]);f!=null&&M(e,["videoMetadata"],f);if(O(d,["toolCall"])!==void 0)throw Error("vc");if(O(d,["toolResponse"])!==void 0)throw Error("wc");if(O(d,["partMetadata"])!==void 0)throw Error("xc");return e})),M(b,["parts"],c));a=O(a,["role"]);a!=null&&M(b,["role"],a);return b},qp=function(a,b){var c=O(a,["ttl"]);b!==void 0&&c!=null&&M(b,["ttl"], c);c=O(a,["expireTime"]);b!==void 0&&c!=null&&M(b,["expireTime"],c);c=O(a,["displayName"]);b!==void 0&&c!=null&&M(b,["displayName"],c);c=O(a,["contents"]);b!==void 0&&c!=null&&(c=uo(c),Array.isArray(c)&&(c=c.map(function(d){return mp(d)})),M(b,["contents"],c));c=O(a,["systemInstruction"]);b!==void 0&&c!=null&&M(b,["systemInstruction"],mp(so(c)));c=O(a,["tools"]);b!==void 0&&c!=null&&(Array.isArray(c)&&(c=c.map(function(d){return op(d)})),M(b,["tools"],c));c=O(a,["toolConfig"]);b!==void 0&&c!=null&& M(b,["toolConfig"],pp(c));if(O(a,["kmsKeyName"])!==void 0)throw Error("tc");},tp=function(a,b){var c=O(a,["ttl"]);b!==void 0&&c!=null&&M(b,["ttl"],c);c=O(a,["expireTime"]);b!==void 0&&c!=null&&M(b,["expireTime"],c);c=O(a,["displayName"]);b!==void 0&&c!=null&&M(b,["displayName"],c);c=O(a,["contents"]);b!==void 0&&c!=null&&(c=uo(c),Array.isArray(c)&&(c=c.map(function(d){return np(d)})),M(b,["contents"],c));c=O(a,["systemInstruction"]);b!==void 0&&c!=null&&M(b,["systemInstruction"],np(so(c)));c=O(a, ["tools"]);b!==void 0&&c!=null&&(Array.isArray(c)&&(c=c.map(function(d){return rp(d)})),M(b,["tools"],c));c=O(a,["toolConfig"]);b!==void 0&&c!=null&&M(b,["toolConfig"],sp(c));a=O(a,["kmsKeyName"]);b!==void 0&&a!=null&&M(b,["encryption_spec","kmsKeyName"],a)},up=function(a,b){var c={},d=O(b,["model"]);d!=null&&M(c,["model"],mo(a,d));a=O(b,["config"]);a!=null&&qp(a,c);return c},vp=function(a,b){var c={},d=O(b,["model"]);d!=null&&M(c,["model"],mo(a,d));a=O(b,["config"]);a!=null&&tp(a,c);return c},wp= function(a,b){var c={};b=O(b,["name"]);b!=null&&M(c,["_url","name"],Bo(a,b));return c},xp=function(a,b){var c={};b=O(b,["name"]);b!=null&&M(c,["_url","name"],Bo(a,b));return c},yp=function(a,b){var c={};b=O(b,["name"]);b!=null&&M(c,["_url","name"],Bo(a,b));return c},zp=function(a,b){var c={};b=O(b,["name"]);b!=null&&M(c,["_url","name"],Bo(a,b));return c},Ap=function(a){var b={},c=O(a,["authConfig"]);if(c!=null){var d={},e=O(c,["apiKey"]);e!=null&&M(d,["apiKey"],e);if(O(c,["apiKeyConfig"])!==void 0)throw Error("Fb"); if(O(c,["authType"])!==void 0)throw Error("Gb");if(O(c,["googleServiceAccountConfig"])!==void 0)throw Error("Hb");if(O(c,["httpBasicAuthConfig"])!==void 0)throw Error("Ib");if(O(c,["oauthConfig"])!==void 0)throw Error("Jb");if(O(c,["oidcConfig"])!==void 0)throw Error("Kb");M(b,["authConfig"],d)}a=O(a,["enableWidget"]);a!=null&&M(b,["enableWidget"],a);return b},Bp=function(a){var b={},c=O(a,["searchTypes"]);c!=null&&M(b,["searchTypes"],c);if(O(a,["blockingConfidence"])!==void 0)throw Error("dc");if(O(a, ["excludeDomains"])!==void 0)throw Error("ec");a=O(a,["timeRangeFilter"]);a!=null&&M(b,["timeRangeFilter"],a);return b},Cp=function(a){var b={};a=O(a,["config"]);if(a!=null){var c=O(a,["pageSize"]);b!==void 0&&c!=null&&M(b,["_query","pageSize"],c);a=O(a,["pageToken"]);b!==void 0&&a!=null&&M(b,["_query","pageToken"],a)}return b},Dp=function(a){var b={};a=O(a,["config"]);if(a!=null){var c=O(a,["pageSize"]);b!==void 0&&c!=null&&M(b,["_query","pageSize"],c);a=O(a,["pageToken"]);b!==void 0&&a!=null&&M(b, ["_query","pageToken"],a)}return b},Ep=function(a){var b={},c=O(a,["sdkHttpResponse"]);c!=null&&M(b,["sdkHttpResponse"],c);c=O(a,["nextPageToken"]);c!=null&&M(b,["nextPageToken"],c);a=O(a,["cachedContents"]);a!=null&&(Array.isArray(a)&&(a=a.map(function(d){return d})),M(b,["cachedContents"],a));return b},Fp=function(a){var b={},c=O(a,["sdkHttpResponse"]);c!=null&&M(b,["sdkHttpResponse"],c);c=O(a,["nextPageToken"]);c!=null&&M(b,["nextPageToken"],c);a=O(a,["cachedContents"]);a!=null&&(Array.isArray(a)&& (a=a.map(function(d){return d})),M(b,["cachedContents"],a));return b},pp=function(a){var b={},c=O(a,["retrievalConfig"]);c!=null&&M(b,["retrievalConfig"],c);c=O(a,["functionCallingConfig"]);if(c!=null){var d={},e=O(c,["allowedFunctionNames"]);e!=null&&M(d,["allowedFunctionNames"],e);e=O(c,["mode"]);e!=null&&M(d,["mode"],e);if(O(c,["streamFunctionCallArguments"])!==void 0)throw Error("Yb");M(b,["functionCallingConfig"],d)}a=O(a,["includeServerSideToolInvocations"]);a!=null&&M(b,["includeServerSideToolInvocations"], a);return b},sp=function(a){var b={},c=O(a,["retrievalConfig"]);c!=null&&M(b,["retrievalConfig"],c);c=O(a,["functionCallingConfig"]);c!=null&&M(b,["functionCallingConfig"],c);if(O(a,["includeServerSideToolInvocations"])!==void 0)throw Error("yc");return b},op=function(a){var b={};if(O(a,["retrieval"])!==void 0)throw Error("mc");var c=O(a,["computerUse"]);c!=null&&M(b,["computerUse"],c);c=O(a,["fileSearch"]);c!=null&&M(b,["fileSearch"],c);c=O(a,["googleSearch"]);c!=null&&M(b,["googleSearch"],Bp(c)); c=O(a,["googleMaps"]);c!=null&&M(b,["googleMaps"],Ap(c));c=O(a,["codeExecution"]);c!=null&&M(b,["codeExecution"],c);if(O(a,["enterpriseWebSearch"])!==void 0)throw Error("nc");c=O(a,["functionDeclarations"]);c!=null&&(Array.isArray(c)&&(c=c.map(function(d){return d})),M(b,["functionDeclarations"],c));c=O(a,["googleSearchRetrieval"]);c!=null&&M(b,["googleSearchRetrieval"],c);if(O(a,["parallelAiSearch"])!==void 0)throw Error("oc");c=O(a,["urlContext"]);c!=null&&M(b,["urlContext"],c);a=O(a,["mcpServers"]); a!=null&&(Array.isArray(a)&&(a=a.map(function(d){return d})),M(b,["mcpServers"],a));return b},rp=function(a){var b={},c=O(a,["retrieval"]);c!=null&&M(b,["retrieval"],c);c=O(a,["computerUse"]);c!=null&&M(b,["computerUse"],c);if(O(a,["fileSearch"])!==void 0)throw Error("zc");c=O(a,["googleSearch"]);c!=null&&M(b,["googleSearch"],c);c=O(a,["googleMaps"]);c!=null&&M(b,["googleMaps"],c);c=O(a,["codeExecution"]);c!=null&&M(b,["codeExecution"],c);c=O(a,["enterpriseWebSearch"]);c!=null&&M(b,["enterpriseWebSearch"], c);c=O(a,["functionDeclarations"]);c!=null&&(Array.isArray(c)&&(c=c.map(function(d){var e={},f=O(d,["description"]);f!=null&&M(e,["description"],f);f=O(d,["name"]);f!=null&&M(e,["name"],f);f=O(d,["parameters"]);f!=null&&M(e,["parameters"],f);f=O(d,["parametersJsonSchema"]);f!=null&&M(e,["parametersJsonSchema"],f);f=O(d,["response"]);f!=null&&M(e,["response"],f);f=O(d,["responseJsonSchema"]);f!=null&&M(e,["responseJsonSchema"],f);if(O(d,["behavior"])!==void 0)throw Error("uc");return e})),M(b,["functionDeclarations"], c));c=O(a,["googleSearchRetrieval"]);c!=null&&M(b,["googleSearchRetrieval"],c);c=O(a,["parallelAiSearch"]);c!=null&&M(b,["parallelAiSearch"],c);c=O(a,["urlContext"]);c!=null&&M(b,["urlContext"],c);if(O(a,["mcpServers"])!==void 0)throw Error("Ac");return b},Gp=function(a,b){var c={},d=O(b,["name"]);d!=null&&M(c,["_url","name"],Bo(a,d));a=O(b,["config"]);a!=null&&(b=O(a,["ttl"]),c!==void 0&&b!=null&&M(c,["ttl"],b),a=O(a,["expireTime"]),c!==void 0&&a!=null&&M(c,["expireTime"],a));return c},Ip=function(a, b){var c={},d=O(b,["name"]);d!=null&&M(c,["_url","name"],Bo(a,d));a=O(b,["config"]);a!=null&&(b=O(a,["ttl"]),c!==void 0&&b!=null&&M(c,["ttl"],b),a=O(a,["expireTime"]),c!==void 0&&a!=null&&M(c,["expireTime"],a));return c},Jp=function(a){var b={};a=O(a,["name"]);a!=null&&M(b,["_url","file"],Do(a));return b},Kp=function(a){var b={};a=O(a,["name"]);a!=null&&M(b,["_url","file"],Do(a));return b},Lp=function(a){var b={};a=O(a,["uris"]);a!=null&&M(b,["uris"],a);return b},Mp=function(a){var b={};a=O(a,["config"]); if(a!=null){var c=O(a,["pageSize"]);b!==void 0&&c!=null&&M(b,["_query","pageSize"],c);a=O(a,["pageToken"]);b!==void 0&&a!=null&&M(b,["_query","pageToken"],a)}return b},Np=function(a){var b={},c=O(a,["sdkHttpResponse"]);c!=null&&M(b,["sdkHttpResponse"],c);c=O(a,["nextPageToken"]);c!=null&&M(b,["nextPageToken"],c);a=O(a,["files"]);a!=null&&(Array.isArray(a)&&(a=a.map(function(d){return d})),M(b,["files"],a));return b},Op=function(a){var b={},c=O(a,["sdkHttpResponse"]);c!=null&&M(b,["sdkHttpResponse"], c);a=O(a,["files"]);a!=null&&(Array.isArray(a)&&(a=a.map(function(d){return d})),M(b,["files"],a));return b},Pp=function(a){var b={};a=O(a,["config"]);a!=null&&(a=O(a,["displayName"]),b!==void 0&&a!=null&&M(b,["displayName"],a));return b},Qp=function(a){var b={};a=O(a,["name"]);a!=null&&M(b,["_url","name"],a);return b},Rp=function(a){var b={};a=O(a,["config"]);if(a!=null){var c=O(a,["pageSize"]);b!==void 0&&c!=null&&M(b,["_query","pageSize"],c);a=O(a,["pageToken"]);b!==void 0&&a!=null&&M(b,["_query", "pageToken"],a)}return b},Sp=function(a){var b={},c=O(a,["sdkHttpResponse"]);c!=null&&M(b,["sdkHttpResponse"],c);c=O(a,["nextPageToken"]);c!=null&&M(b,["nextPageToken"],c);a=O(a,["fileSearchStores"]);a!=null&&(Array.isArray(a)&&(a=a.map(function(d){return d})),M(b,["fileSearchStores"],a));return b},Up=function(a){var b,c,d,e,f;return _.J(function(g){switch(g.h){case 1:if(a===void 0)throw Error("Oc");if(a.ok){g.H(0);break}b=a.status;return((d=a.headers.get("content-type"))==null?0:d.includes("application/json"))? g.g(a.json(),6):g.g(a.text(),5);case 5:c={error:{message:g.j,code:a.status,status:a.statusText}};g.H(4);break;case 6:c=g.j;case 4:e=JSON.stringify(c);if(b>=400&&b<600)throw f=new Tp({message:e,status:b}),f;throw Error(e);}})},Vp=function(a,b){function c(f,g){f=Object.assign({},f);for(var h in g)if(Object.prototype.hasOwnProperty.call(g,h)){var m=g[h],n=f[h];m&&typeof m==="object"&&!Array.isArray(m)&&n&&typeof n==="object"&&!Array.isArray(n)?f[h]=c(n,m):(n&&m&&typeof n!==typeof m&&console.warn('includeExtraBodyToRequestInit:deepMerge: Type mismatch for key "'+ h+'". Original type: '+typeof n+", New type: "+typeof m+". Overwriting."),f[h]=m)}return f}if(b&&Object.keys(b).length!==0)if(a.body instanceof Blob)console.warn("includeExtraBodyToRequestInit: extraBody provided but current request body is a Blob. extraBody will be ignored as merging is not supported for Blob bodies.");else{var d={};if(typeof a.body==="string"&&a.body.length>0)try{var e=JSON.parse(a.body);if(typeof e!=="object"||e===null||Array.isArray(e)){console.warn("includeExtraBodyToRequestInit: Original request body is valid JSON but not a non-array object. Skip applying extraBody to the request body."); return}d=e}catch(f){console.warn("includeExtraBodyToRequestInit: Original request body is not valid JSON. Skip applying extraBody to the request body.");return}b=c(d,b);a.body=JSON.stringify(b)}},Wp=function(a){var b={};a=O(a,["name"]);a!=null&&M(b,["_url","name"],a);return b},Xp=function(a){var b={},c=O(a,["parent"]);c!=null&&M(b,["_url","parent"],c);a=O(a,["config"]);a!=null&&(c=O(a,["pageSize"]),b!==void 0&&c!=null&&M(b,["_query","pageSize"],c),a=O(a,["pageToken"]),b!==void 0&&a!=null&&M(b,["_query", "pageToken"],a));return b},Yp=function(a){var b={},c=O(a,["sdkHttpResponse"]);c!=null&&M(b,["sdkHttpResponse"],c);c=O(a,["nextPageToken"]);c!=null&&M(b,["nextPageToken"],c);a=O(a,["documents"]);a!=null&&(Array.isArray(a)&&(a=a.map(function(d){return d})),M(b,["documents"],a));return b},$p=function(a,b,c,d){var e,f,g,h,m;return _.J(function(n){if(n.h==1)return n.g(Zp(a,b,c,d),2);if(n.h!=3)return e=n.j,n.g((f=e)==null?void 0:R(f),3);g=n.j;if(((h=e)==null?void 0:(m=h.headers)==null?void 0:m["x-goog-upload-status"])!== "final")throw Error("Qc");return n.return(g.file)})},Zp=function(a,b,c,d){var e,f,g,h,m,n,q,u,p,t,v,w,y,B,H,I,N,K,X,F;return _.J(function(ea){switch(ea.h){case 1:e=b;if(h=((f=d)==null?void 0:f.baseUrl)||((g=c.R.httpOptions)==null?void 0:g.baseUrl))m=new URL(h),n=new URL(b),n.protocol=m.protocol,n.host=m.host,n.port=m.port,e=n.toString();u=q=0;p=new aq(new Response);t="upload";q=a.size;case 2:if(!(u=q&&(t+=", finalize");y=0;B=1E3;case 5:if(!(y< 3)){ea.H(7);break}H=void 0;I=Object.assign({},((H=d)==null?void 0:H.headers)||{},{"X-Goog-Upload-Command":t,"X-Goog-Upload-Offset":String(u),"Content-Length":String(v)});return ea.g(c.request({path:"",body:w,O:"POST",httpOptions:Object.assign({},d,{apiVersion:"",baseUrl:e,headers:I})}),8);case 8:p=ea.j;K=N=void 0;if((N=p)==null?0:(K=N.headers)==null?0:K["x-goog-upload-status"]){ea.H(7);break}y++;return ea.g(bq(B),9);case 9:B*=2;ea.H(5);break;case 7:u+=v;F=X=void 0;if(((X=p)==null?void 0:(F=X.headers)== null?void 0:F["x-goog-upload-status"])!=="active"){ea.H(4);break}if(q<=u)throw Error("Rc");ea.H(2);break;case 4:return ea.return(p)}})},cq=function(a){var b;return _.J(function(c){b={size:a.size,type:a.type};return c.return(b)})},bq=function(a){return new Promise(function(b){return setTimeout(b,a)})},dq=function(a){return typeof a==="object"&&a!==null&&("name"in a&&a.name==="AbortError"||"message"in a&&String(a.message).includes("FetchRequestCanceledException"))},fq=function(a){var b,c;return((c= eq)!=null?c:(b=new globalThis.TextEncoder,eq=b.encode.bind(b)))(a)},hq=function(a){var b,c;return((c=gq)!=null?c:(b=new globalThis.TextDecoder,gq=b.decode.bind(b)))(a)},iq=function(a,b){var c=b!=null?b:0;b=a.indexOf(10,c);c=a.indexOf(13,c);if(b===-1&&c===-1)return null;b=b!==-1&&c!==-1?Math.min(b,c):b!==-1?b:c;return a[b]===10?{Ef:b,index:b+1,Ue:!1}:{Ef:b,index:b+1,Ue:!0}},jq=function(){var a=_.sc.apply(0,arguments),b=globalThis.ReadableStream;if(typeof b==="undefined")throw Error("Wc");return new (Function.prototype.bind.apply(b, [null].concat(_.mc(a))))},kq=function(a){var b=Symbol.asyncIterator in a?a[Symbol.asyncIterator]():a[Symbol.iterator]();return jq({start:function(){},pull:function(c){var d,e,f;return _.J(function(g){if(g.h==1)return g.g(b.next(),2);d=g.j;e=d.done;f=d.value;e?c.close():c.enqueue(f);g.F()})},cancel:function(){var c,d;return _.J(function(e){return e.g((d=(c=b).return)==null?void 0:d.call(c),0)})}})},lq=function(a){if(a[Symbol.asyncIterator])return a;var b=a.getReader();a={};return a.next=function(){var c, d,e;return _.J(function(f){if(f.h==1)return f.B(2),f.g(b.read(),4);if(f.h!=2)return c=f.j,((d=c)==null?0:d.done)&&b.releaseLock(),f.return(c);e=f.A();b.releaseLock();throw e;})},a.return=function(){var c;return _.J(function(d){return d.h==1?(c=b.cancel(),b.releaseLock(),d.g(c,2)):d.return({done:!0,value:void 0})})},a[Symbol.asyncIterator]=function(){return this},a},mq=function(a){var b,c,d,e;return _.J(function(f){if(f.h==1)return a===null||typeof a!=="object"?f.return():a[Symbol.asyncIterator]?f.g((c= (b=a[Symbol.asyncIterator]()).return)==null?void 0:c.call(b),3):f.H(2);if(f.h!=2)return f.return();d=a.getReader();e=d.cancel();d.releaseLock();return f.g(e,0)})},nq=function(a){if(!a)return!0;for(var b in a)return!1;return!0},oq=function(){},qq=function(a,b,c){return!b||pq[a]>pq[c]?oq:b[a].bind(b)},tq=function(a){var b=a.gd,c;a=(c=a.wf)!=null?c:"off";if(!b)return rq;if((c=sq.get(b))&&c[0]===a)return c[1];c={error:qq("error",b,a),warn:qq("warn",b,a),info:qq("info",b,a),debug:qq("debug",b,a)};sq.set(b, [a,c]);return c},Dq=function(a,b){return function(){return new uq(function d(){var e,f,g,h,m,n,q,u,p,t,v,w,y,B,H,I,N,K,X;return vq(d,function(F){switch(F.h){case 1:F.C(2);if(!a.body){b.abort();if(typeof globalThis.navigator!=="undefined"&&globalThis.navigator.product==="ReactNative")throw new wq("The default react-native fetch implementation does not support streaming. Please use expo/fetch: https://docs.expo.dev/versions/latest/sdk/expo/#expofetch-api");throw new wq("Attempted to iterate over a response with no body"); }e=new xq;f=new yq;g=lq(a.body);F.B(4,5);q=zq(Aq(g));case 7:return F.g(new Bq(2,q.next()),10);case 10:m=F.j;if(m.done){F.H(5);break}u=m.value;p=_.A(f.decode(u));t=p.next();case 11:if(t.done){F.H(7);break}v=t.value;w=e.decode(v);if(!w){F.H(12);break}y=Cq;return F.g(new Bq(0,w),15);case 15:y(F.j);case 12:t=p.next();F.H(11);break;case 5:F.l(0,2);F.C(16);if(!m||m.done||!(n=q.return)){F.H(16);break}return F.g(new Bq(2,n.call(q)),16);case 16:F.l(0,2,1);if(h)throw h.error;F.o(17,1);break;case 17:F.o(6); break;case 4:B=F.A();h={error:B};F.H(5);break;case 6:H=_.A(f.flush()),I=H.next();case 20:if(I.done){F.H(2);break}N=I.value;K=e.decode(N);if(!K){F.H(21);break}X=Cq;return F.g(new Bq(0,K),24);case 24:X(F.j);case 21:I=H.next();F.H(20);break;case 2:F.l(),F.o(0)}})}())}()},Aq=function(a){return function(){return new uq(function c(){var d,e,f,g,h,m,n,q;return vq(c,function(u){switch(u.h){case 1:u.C(2),u.B(4,5),g=zq(a);case 7:return u.g(new Bq(2,g.next()),10);case 10:e=u.j;if(e.done){u.H(5);break}h=e.value; if(h==null){u.H(7);break}m=h instanceof ArrayBuffer?new Uint8Array(h):typeof h==="string"?fq(h):h;n=Cq;return u.g(new Bq(0,m),11);case 11:n(u.j);u.H(7);break;case 5:u.l(0,2);u.C(12);if(!e||e.done||!(f=g.return)){u.H(12);break}return u.g(new Bq(2,f.call(g)),12);case 12:u.l(0,2,1);if(d)throw d.error;u.o(13,1);break;case 13:u.o(2);break;case 4:q=u.A();d={error:q};u.H(5);break;case 2:u.l(),u.o(0)}})}())}()},Gq=function(a,b){var c,d,e,f,g,h;return _.J(function(m){if(m.h==1)return c=b,d=c.response,e=c.Rk, f=c.fb,g=c.startTime,m.g(function(){var n,q,u,p,t,v,w,y,B,H;return _.J(function(I){switch(I.h){case 1:if(b.options.stream)return tq(a).debug("response",d.status,d.url,d.headers,d.body),b.options.Qi?I.return(b.options.Qi.Cn(d,b.controller,a)):I.return(Eq(d,b.controller,a));if(d.status===204)return I.return(null);if(b.options.gn)return I.return(d);n=d.headers.get("content-type");p=(q=n)==null?void 0:(u=q.split(";")[0])==null?void 0:u.trim();w=((t=p)==null?void 0:t.includes("application/json"))||((v= p)==null?void 0:v.endsWith("+json"));if(!w){I.H(2);break}y=d.headers.get("content-length");return y==="0"?I.return(void 0):I.g(d.json(),3);case 3:return B=I.j,I.return(B);case 2:return I.g(d.text(),4);case 4:return H=I.j,I.return(H)}})}(),2);h=m.j;tq(a).debug("["+e+"] response parsed",Fq({fb:f,url:d.url,status:d.status,body:h,Xc:Date.now()-g}));return m.return(h)})},Jq=function(a){return function c(){var d,e,f,g,h,m,n,q,u,p,t,v,w,y,B,H,I,N,K,X,F,ea;return vq(c,function(Y){switch(Y.h){case 1:Y.C(2); if(!a)return Y.return();if(!(Hq in a)){Y.H(4);break}d=a;e=d.values;f=d.wh;g=Cq;return Y.Na(e.entries(),5);case 5:g(Y.j),h=_.A(f),m=h.next();case 6:if(m.done){Y.H(8);break}n=m.value;q=Cq;return Y.g([n,null],9);case 9:q(Y.j);m=h.next();Y.H(6);break;case 8:return Y.return();case 4:u=!1,a instanceof Headers?p=a.entries():Iq(a)?p=a:(u=!0,p=Object.entries((t=a)!=null?t:{})),v=_.A(p),w=v.next();case 10:if(w.done){Y.H(2);break}y=w.value;B=y[0];if(typeof B!=="string")throw new TypeError("Yc");H=Iq(y[1])?y[1]: [y[1]];I=!1;N=_.A(H);K=N.next();case 13:if(K.done){w=v.next();Y.H(10);break}X=K.value;if(X===void 0){Y.H(14);break}if(!u||I){Y.H(16);break}I=!0;F=Cq;return Y.g([B,null],17);case 17:F(Y.j);case 16:return ea=Cq,Y.g([B,X],18);case 18:ea(Y.j);case 14:K=N.next();Y.H(13);break;case 2:Y.l(),Y.o(0)}})}()},Kq=function(a){return Object.entries(a).filter(function(b){b=_.A(b);b.next();return typeof b.next().value!=="undefined"}).map(function(b){var c=_.A(b);b=c.next().value;c=c.next().value;if(typeof c==="string"|| typeof c==="number"||typeof c==="boolean")return encodeURIComponent(b)+"="+encodeURIComponent(c);if(c===null)return encodeURIComponent(b)+"=";throw new wq("Cannot stringify type "+typeof c+"; Expected string, number, boolean, or null. If you need to pass nested query parameters, you can manually encode them, e.g. { query: { 'foo[key1]': value1, 'foo[key2]': value2 } }, and please open a GitHub issue requesting better support for your use case.");}).join("&")},Lq=function(a){return a.replace(/[^A-Za-z0-9\-._~!$&'()*+,;=:@]+/g, encodeURIComponent)},Nq=function(a){var b={},c=O(a,["content"]);c!=null&&M(b,["content"],c);c=O(a,["citationMetadata"]);c!=null&&M(b,["citationMetadata"],Mq(c));c=O(a,["tokenCount"]);c!=null&&M(b,["tokenCount"],c);c=O(a,["finishReason"]);c!=null&&M(b,["finishReason"],c);c=O(a,["groundingMetadata"]);c!=null&&M(b,["groundingMetadata"],c);c=O(a,["avgLogprobs"]);c!=null&&M(b,["avgLogprobs"],c);c=O(a,["index"]);c!=null&&M(b,["index"],c);c=O(a,["logprobsResult"]);c!=null&&M(b,["logprobsResult"],c);c=O(a, ["safetyRatings"]);c!=null&&(Array.isArray(c)&&(c=c.map(function(d){return d})),M(b,["safetyRatings"],c));a=O(a,["urlContextMetadata"]);a!=null&&M(b,["urlContextMetadata"],a);return b},Mq=function(a){var b={};a=O(a,["citationSources"]);a!=null&&(Array.isArray(a)&&(a=a.map(function(c){return c})),M(b,["citations"],a));return b},Oq=function(a){var b={},c=O(a,["parts"]);c!=null&&(Array.isArray(c)&&(c=c.map(function(d){var e={},f=O(d,["mediaResolution"]);f!=null&&M(e,["mediaResolution"],f);f=O(d,["codeExecutionResult"]); f!=null&&M(e,["codeExecutionResult"],f);f=O(d,["executableCode"]);f!=null&&M(e,["executableCode"],f);var g=O(d,["fileData"]);if(g!=null){f={};if(O(g,["displayName"])!==void 0)throw Error("Sb");var h=O(g,["fileUri"]);h!=null&&M(f,["fileUri"],h);g=O(g,["mimeType"]);g!=null&&M(f,["mimeType"],g);M(e,["fileData"],f)}f=O(d,["functionCall"]);if(f!=null){g={};h=O(f,["id"]);h!=null&&M(g,["id"],h);h=O(f,["args"]);h!=null&&M(g,["args"],h);h=O(f,["name"]);h!=null&&M(g,["name"],h);if(O(f,["partialArgs"])!==void 0)throw Error("Wb"); if(O(f,["willContinue"])!==void 0)throw Error("Xb");M(e,["functionCall"],g)}f=O(d,["functionResponse"]);f!=null&&M(e,["functionResponse"],f);g=O(d,["inlineData"]);if(g!=null){f={};h=O(g,["data"]);h!=null&&M(f,["data"],h);if(O(g,["displayName"])!==void 0)throw Error("Sb");g=O(g,["mimeType"]);g!=null&&M(f,["mimeType"],g);M(e,["inlineData"],f)}f=O(d,["text"]);f!=null&&M(e,["text"],f);f=O(d,["thought"]);f!=null&&M(e,["thought"],f);f=O(d,["thoughtSignature"]);f!=null&&M(e,["thoughtSignature"],f);f=O(d, ["videoMetadata"]);f!=null&&M(e,["videoMetadata"],f);f=O(d,["toolCall"]);f!=null&&M(e,["toolCall"],f);f=O(d,["toolResponse"]);f!=null&&M(e,["toolResponse"],f);d=O(d,["partMetadata"]);d!=null&&M(e,["partMetadata"],d);return e})),M(b,["parts"],c));a=O(a,["role"]);a!=null&&M(b,["role"],a);return b},Pq=function(a){var b={},c=O(a,["parts"]);c!=null&&(Array.isArray(c)&&(c=c.map(function(d){var e={},f=O(d,["mediaResolution"]);f!=null&&M(e,["mediaResolution"],f);f=O(d,["codeExecutionResult"]);f!=null&&M(e, ["codeExecutionResult"],f);f=O(d,["executableCode"]);f!=null&&M(e,["executableCode"],f);f=O(d,["fileData"]);f!=null&&M(e,["fileData"],f);f=O(d,["functionCall"]);f!=null&&M(e,["functionCall"],f);f=O(d,["functionResponse"]);f!=null&&M(e,["functionResponse"],f);f=O(d,["inlineData"]);f!=null&&M(e,["inlineData"],f);f=O(d,["text"]);f!=null&&M(e,["text"],f);f=O(d,["thought"]);f!=null&&M(e,["thought"],f);f=O(d,["thoughtSignature"]);f!=null&&M(e,["thoughtSignature"],f);f=O(d,["videoMetadata"]);f!=null&&M(e, ["videoMetadata"],f);if(O(d,["toolCall"])!==void 0)throw Error("vc");if(O(d,["toolResponse"])!==void 0)throw Error("wc");if(O(d,["partMetadata"])!==void 0)throw Error("xc");return e})),M(b,["parts"],c));a=O(a,["role"]);a!=null&&M(b,["role"],a);return b},Qq=function(a,b){var c={};b=O(b,["model"]);b!=null&&M(c,["_url","name"],lo(a,b));return c},Rq=function(a,b){var c={};b=O(b,["model"]);b!=null&&M(c,["_url","name"],lo(a,b));return c},Sq=function(a,b){var c=O(a,["outputGcsUri"]);b!==void 0&&c!=null&& M(b,["parameters","storageUri"],c);c=O(a,["negativePrompt"]);b!==void 0&&c!=null&&M(b,["parameters","negativePrompt"],c);c=O(a,["numberOfImages"]);b!==void 0&&c!=null&&M(b,["parameters","sampleCount"],c);c=O(a,["aspectRatio"]);b!==void 0&&c!=null&&M(b,["parameters","aspectRatio"],c);c=O(a,["guidanceScale"]);b!==void 0&&c!=null&&M(b,["parameters","guidanceScale"],c);c=O(a,["seed"]);b!==void 0&&c!=null&&M(b,["parameters","seed"],c);c=O(a,["safetyFilterLevel"]);b!==void 0&&c!=null&&M(b,["parameters", "safetySetting"],c);c=O(a,["personGeneration"]);b!==void 0&&c!=null&&M(b,["parameters","personGeneration"],c);c=O(a,["includeSafetyAttributes"]);b!==void 0&&c!=null&&M(b,["parameters","includeSafetyAttributes"],c);c=O(a,["includeRaiReason"]);b!==void 0&&c!=null&&M(b,["parameters","includeRaiReason"],c);c=O(a,["language"]);b!==void 0&&c!=null&&M(b,["parameters","language"],c);c=O(a,["outputMimeType"]);b!==void 0&&c!=null&&M(b,["parameters","outputOptions","mimeType"],c);c=O(a,["outputCompressionQuality"]); b!==void 0&&c!=null&&M(b,["parameters","outputOptions","compressionQuality"],c);c=O(a,["addWatermark"]);b!==void 0&&c!=null&&M(b,["parameters","addWatermark"],c);c=O(a,["labels"]);b!==void 0&&c!=null&&M(b,["labels"],c);c=O(a,["editMode"]);b!==void 0&&c!=null&&M(b,["parameters","editMode"],c);a=O(a,["baseSteps"]);b!==void 0&&a!=null&&M(b,["parameters","editConfig","baseSteps"],a)},Uq=function(a,b){var c={},d=O(b,["model"]);d!=null&&M(c,["_url","model"],lo(a,d));a=O(b,["prompt"]);a!=null&&M(c,["instances[0]", "prompt"],a);a=O(b,["referenceImages"]);a!=null&&(Array.isArray(a)&&(a=a.map(function(e){var f={},g=O(e,["referenceImage"]);g!=null&&M(f,["referenceImage"],Tq(g));g=O(e,["referenceId"]);g!=null&&M(f,["referenceId"],g);g=O(e,["referenceType"]);g!=null&&M(f,["referenceType"],g);var h=O(e,["maskImageConfig"]);if(h!=null){g={};var m=O(h,["maskMode"]);m!=null&&M(g,["maskMode"],m);m=O(h,["segmentationClasses"]);m!=null&&M(g,["maskClasses"],m);h=O(h,["maskDilation"]);h!=null&&M(g,["dilation"],h);M(f,["maskImageConfig"], g)}h=O(e,["controlImageConfig"]);h!=null&&(g={},m=O(h,["controlType"]),m!=null&&M(g,["controlType"],m),h=O(h,["enableControlImageComputation"]),h!=null&&M(g,["computeControl"],h),M(f,["controlImageConfig"],g));g=O(e,["styleImageConfig"]);g!=null&&M(f,["styleImageConfig"],g);e=O(e,["subjectImageConfig"]);e!=null&&M(f,["subjectImageConfig"],e);return f})),M(c,["instances[0]","referenceImages"],a));b=O(b,["config"]);b!=null&&Sq(b,c);return c},Wq=function(a){var b={},c=O(a,["sdkHttpResponse"]);c!=null&& M(b,["sdkHttpResponse"],c);a=O(a,["predictions"]);a!=null&&(Array.isArray(a)&&(a=a.map(function(d){return Vq(d)})),M(b,["generatedImages"],a));return b},Xq=function(a,b){var c=O(a,["taskType"]);b!==void 0&&c!=null&&M(b,["requests[]","taskType"],c);c=O(a,["title"]);b!==void 0&&c!=null&&M(b,["requests[]","title"],c);c=O(a,["outputDimensionality"]);b!==void 0&&c!=null&&M(b,["requests[]","outputDimensionality"],c);if(O(a,["mimeType"])!==void 0)throw Error("Ub");if(O(a,["autoTruncate"])!==void 0)throw Error("Vb"); },Yq=function(a,b,c){var d=O(c,["embeddingApiType"]);d===void 0&&(d="PREDICT");d==="PREDICT"?(d=O(a,["taskType"]),b!==void 0&&d!=null&&M(b,["instances[]","task_type"],d)):d==="EMBED_CONTENT"&&(d=O(a,["taskType"]),b!==void 0&&d!=null&&M(b,["taskType"],d));d=O(c,["embeddingApiType"]);d===void 0&&(d="PREDICT");d==="PREDICT"?(d=O(a,["title"]),b!==void 0&&d!=null&&M(b,["instances[]","title"],d)):d==="EMBED_CONTENT"&&(d=O(a,["title"]),b!==void 0&&d!=null&&M(b,["title"],d));d=O(c,["embeddingApiType"]);d=== void 0&&(d="PREDICT");d==="PREDICT"?(d=O(a,["outputDimensionality"]),b!==void 0&&d!=null&&M(b,["parameters","outputDimensionality"],d)):d==="EMBED_CONTENT"&&(d=O(a,["outputDimensionality"]),b!==void 0&&d!=null&&M(b,["outputDimensionality"],d));d=O(c,["embeddingApiType"]);d===void 0&&(d="PREDICT");d==="PREDICT"&&(d=O(a,["mimeType"]),b!==void 0&&d!=null&&M(b,["instances[]","mimeType"],d));c=O(c,["embeddingApiType"]);c===void 0&&(c="PREDICT");c==="PREDICT"?(a=O(a,["autoTruncate"]),b!==void 0&&a!=null&& M(b,["parameters","autoTruncate"],a)):c==="EMBED_CONTENT"&&(a=O(a,["autoTruncate"]),b!==void 0&&a!=null&&M(b,["autoTruncate"],a))},Zq=function(a,b){var c={},d=O(b,["model"]);d!=null&&M(c,["_url","model"],lo(a,d));d=O(b,["contents"]);d!=null&&(d=to(a,d),Array.isArray(d)&&(d=d.map(function(e){return e})),M(c,["requests[]","content"],d));d=O(b,["content"]);d!=null&&Oq(so(d));d=O(b,["config"]);d!=null&&Xq(d,c);b=O(b,["model"]);b!==void 0&&M(c,["requests[]","model"],lo(a,b));return c},$q=function(a,b, c){var d={},e=O(b,["model"]);e!=null&&M(d,["_url","model"],lo(a,e));e=O(c,["embeddingApiType"]);e===void 0&&(e="PREDICT");e==="PREDICT"&&(e=O(b,["contents"]),e!=null&&(a=to(a,e),Array.isArray(a)&&(a=a.map(function(f){return f})),M(d,["instances[]","content"],a)));a=O(c,["embeddingApiType"]);a===void 0&&(a="PREDICT");a==="EMBED_CONTENT"&&(a=O(b,["content"]),a!=null&&M(d,["content"],Pq(so(a))));b=O(b,["config"]);b!=null&&Yq(b,d,c);return d},ar=function(a){var b={},c=O(a,["sdkHttpResponse"]);c!=null&& M(b,["sdkHttpResponse"],c);c=O(a,["embeddings"]);c!=null&&(Array.isArray(c)&&(c=c.map(function(d){return d})),M(b,["embeddings"],c));a=O(a,["metadata"]);a!=null&&M(b,["metadata"],a);return b},br=function(a,b){var c={},d=O(a,["sdkHttpResponse"]);d!=null&&M(c,["sdkHttpResponse"],d);d=O(a,["predictions[]","embeddings"]);d!=null&&(Array.isArray(d)&&(d=d.map(function(f){var g={},h=O(f,["values"]);h!=null&&M(g,["values"],h);h=O(f,["statistics"]);if(h!=null){f={};var m=O(h,["truncated"]);m!=null&&M(f,["truncated"], m);h=O(h,["token_count"]);h!=null&&M(f,["tokenCount"],h);M(g,["statistics"],f)}return g})),M(c,["embeddings"],d));d=O(a,["metadata"]);d!=null&&M(c,["metadata"],d);if(b&&O(b,["embeddingApiType"])==="EMBED_CONTENT"&&(b=O(a,["embedding"]),d=O(a,["usageMetadata"]),a=O(a,["truncated"]),b)){var e={};d&&d.promptTokenCount&&(e.tokenCount=d.promptTokenCount);a&&(e.truncated=a);b.statistics=e;M(c,["embeddings"],[b])}return c},fr=function(a,b,c){var d={},e=O(b,["systemInstruction"]);c!==void 0&&e!=null&&M(c, ["systemInstruction"],Oq(so(e)));e=O(b,["temperature"]);e!=null&&M(d,["temperature"],e);e=O(b,["topP"]);e!=null&&M(d,["topP"],e);e=O(b,["topK"]);e!=null&&M(d,["topK"],e);e=O(b,["candidateCount"]);e!=null&&M(d,["candidateCount"],e);e=O(b,["maxOutputTokens"]);e!=null&&M(d,["maxOutputTokens"],e);e=O(b,["stopSequences"]);e!=null&&M(d,["stopSequences"],e);e=O(b,["responseLogprobs"]);e!=null&&M(d,["responseLogprobs"],e);e=O(b,["logprobs"]);e!=null&&M(d,["logprobs"],e);e=O(b,["presencePenalty"]);e!=null&& M(d,["presencePenalty"],e);e=O(b,["frequencyPenalty"]);e!=null&&M(d,["frequencyPenalty"],e);e=O(b,["seed"]);e!=null&&M(d,["seed"],e);e=O(b,["responseMimeType"]);e!=null&&M(d,["responseMimeType"],e);e=O(b,["responseSchema"]);e!=null&&M(d,["responseSchema"],xo(e));e=O(b,["responseJsonSchema"]);e!=null&&M(d,["responseJsonSchema"],e);if(O(b,["routingConfig"])!==void 0)throw Error("Zb");if(O(b,["modelSelectionConfig"])!==void 0)throw Error("$b");e=O(b,["safetySettings"]);c!==void 0&&e!=null&&(Array.isArray(e)&& (e=e.map(function(f){var g={},h=O(f,["category"]);h!=null&&M(g,["category"],h);if(O(f,["method"])!==void 0)throw Error("lc");f=O(f,["threshold"]);f!=null&&M(g,["threshold"],f);return g})),M(c,["safetySettings"],e));e=O(b,["tools"]);c!==void 0&&e!=null&&(e=Ao(e),Array.isArray(e)&&(e=e.map(function(f){return cr(zo(f))})),M(c,["tools"],e));e=O(b,["toolConfig"]);c!==void 0&&e!=null&&M(c,["toolConfig"],dr(e));if(O(b,["labels"])!==void 0)throw Error("ac");e=O(b,["cachedContent"]);c!==void 0&&e!=null&&M(c, ["cachedContent"],Bo(a,e));a=O(b,["responseModalities"]);a!=null&&M(d,["responseModalities"],a);a=O(b,["mediaResolution"]);a!=null&&M(d,["mediaResolution"],a);a=O(b,["speechConfig"]);a!=null&&M(d,["speechConfig"],yo(a));if(O(b,["audioTimestamp"])!==void 0)throw Error("bc");a=O(b,["thinkingConfig"]);a!=null&&M(d,["thinkingConfig"],a);a=O(b,["imageConfig"]);a!=null&&M(d,["imageConfig"],er(a));a=O(b,["enableEnhancedCivicAnswers"]);a!=null&&M(d,["enableEnhancedCivicAnswers"],a);if(O(b,["modelArmorConfig"])!== void 0)throw Error("cc");b=O(b,["serviceTier"]);c!==void 0&&b!=null&&M(c,["serviceTier"],b);return d},kr=function(a,b,c){var d={},e=O(b,["systemInstruction"]);c!==void 0&&e!=null&&M(c,["systemInstruction"],Pq(so(e)));e=O(b,["temperature"]);e!=null&&M(d,["temperature"],e);e=O(b,["topP"]);e!=null&&M(d,["topP"],e);e=O(b,["topK"]);e!=null&&M(d,["topK"],e);e=O(b,["candidateCount"]);e!=null&&M(d,["candidateCount"],e);e=O(b,["maxOutputTokens"]);e!=null&&M(d,["maxOutputTokens"],e);e=O(b,["stopSequences"]); e!=null&&M(d,["stopSequences"],e);e=O(b,["responseLogprobs"]);e!=null&&M(d,["responseLogprobs"],e);e=O(b,["logprobs"]);e!=null&&M(d,["logprobs"],e);e=O(b,["presencePenalty"]);e!=null&&M(d,["presencePenalty"],e);e=O(b,["frequencyPenalty"]);e!=null&&M(d,["frequencyPenalty"],e);e=O(b,["seed"]);e!=null&&M(d,["seed"],e);e=O(b,["responseMimeType"]);e!=null&&M(d,["responseMimeType"],e);e=O(b,["responseSchema"]);e!=null&&M(d,["responseSchema"],xo(e));e=O(b,["responseJsonSchema"]);e!=null&&M(d,["responseJsonSchema"], e);e=O(b,["routingConfig"]);e!=null&&M(d,["routingConfig"],e);e=O(b,["modelSelectionConfig"]);e!=null&&M(d,["modelConfig"],e);e=O(b,["safetySettings"]);c!==void 0&&e!=null&&(Array.isArray(e)&&(e=e.map(function(f){return f})),M(c,["safetySettings"],e));e=O(b,["tools"]);c!==void 0&&e!=null&&(e=Ao(e),Array.isArray(e)&&(e=e.map(function(f){return gr(zo(f))})),M(c,["tools"],e));e=O(b,["toolConfig"]);c!==void 0&&e!=null&&M(c,["toolConfig"],hr(e));e=O(b,["labels"]);c!==void 0&&e!=null&&M(c,["labels"],e); e=O(b,["cachedContent"]);c!==void 0&&e!=null&&M(c,["cachedContent"],Bo(a,e));a=O(b,["responseModalities"]);a!=null&&M(d,["responseModalities"],a);a=O(b,["mediaResolution"]);a!=null&&M(d,["mediaResolution"],a);a=O(b,["speechConfig"]);a!=null&&M(d,["speechConfig"],ir(yo(a)));a=O(b,["audioTimestamp"]);a!=null&&M(d,["audioTimestamp"],a);a=O(b,["thinkingConfig"]);a!=null&&M(d,["thinkingConfig"],a);a=O(b,["imageConfig"]);a!=null&&M(d,["imageConfig"],jr(a));if(O(b,["enableEnhancedCivicAnswers"])!==void 0)throw Error("$c"); a=O(b,["modelArmorConfig"]);c!==void 0&&a!=null&&M(c,["modelArmorConfig"],a);if(O(b,["serviceTier"])!==void 0)throw Error("ad");return d},lr=function(a,b){var c={},d=O(b,["model"]);d!=null&&M(c,["_url","model"],lo(a,d));d=O(b,["contents"]);d!=null&&(d=uo(d),Array.isArray(d)&&(d=d.map(function(e){return Oq(e)})),M(c,["contents"],d));b=O(b,["config"]);b!=null&&M(c,["generationConfig"],fr(a,b,c));return c},mr=function(a,b){var c={},d=O(b,["model"]);d!=null&&M(c,["_url","model"],lo(a,d));d=O(b,["contents"]); d!=null&&(d=uo(d),Array.isArray(d)&&(d=d.map(function(e){return Pq(e)})),M(c,["contents"],d));b=O(b,["config"]);b!=null&&M(c,["generationConfig"],kr(a,b,c));return c},nr=function(a){var b={},c=O(a,["sdkHttpResponse"]);c!=null&&M(b,["sdkHttpResponse"],c);c=O(a,["candidates"]);c!=null&&(Array.isArray(c)&&(c=c.map(function(d){return Nq(d)})),M(b,["candidates"],c));c=O(a,["modelVersion"]);c!=null&&M(b,["modelVersion"],c);c=O(a,["promptFeedback"]);c!=null&&M(b,["promptFeedback"],c);c=O(a,["responseId"]); c!=null&&M(b,["responseId"],c);c=O(a,["usageMetadata"]);c!=null&&M(b,["usageMetadata"],c);a=O(a,["modelStatus"]);a!=null&&M(b,["modelStatus"],a);return b},or=function(a){var b={},c=O(a,["sdkHttpResponse"]);c!=null&&M(b,["sdkHttpResponse"],c);c=O(a,["candidates"]);c!=null&&(Array.isArray(c)&&(c=c.map(function(d){return d})),M(b,["candidates"],c));c=O(a,["createTime"]);c!=null&&M(b,["createTime"],c);c=O(a,["modelVersion"]);c!=null&&M(b,["modelVersion"],c);c=O(a,["promptFeedback"]);c!=null&&M(b,["promptFeedback"], c);c=O(a,["responseId"]);c!=null&&M(b,["responseId"],c);a=O(a,["usageMetadata"]);a!=null&&M(b,["usageMetadata"],a);return b},pr=function(a,b){var c={},d=O(b,["model"]);d!=null&&M(c,["_url","model"],lo(a,d));a=O(b,["prompt"]);a!=null&&M(c,["instances[0]","prompt"],a);b=O(b,["config"]);if(b!=null){if(O(b,["outputGcsUri"])!==void 0)throw Error("bd");if(O(b,["negativePrompt"])!==void 0)throw Error("cd");a=O(b,["numberOfImages"]);c!==void 0&&a!=null&&M(c,["parameters","sampleCount"],a);a=O(b,["aspectRatio"]); c!==void 0&&a!=null&&M(c,["parameters","aspectRatio"],a);a=O(b,["guidanceScale"]);c!==void 0&&a!=null&&M(c,["parameters","guidanceScale"],a);if(O(b,["seed"])!==void 0)throw Error("dd");a=O(b,["safetyFilterLevel"]);c!==void 0&&a!=null&&M(c,["parameters","safetySetting"],a);a=O(b,["personGeneration"]);c!==void 0&&a!=null&&M(c,["parameters","personGeneration"],a);a=O(b,["includeSafetyAttributes"]);c!==void 0&&a!=null&&M(c,["parameters","includeSafetyAttributes"],a);a=O(b,["includeRaiReason"]);c!==void 0&& a!=null&&M(c,["parameters","includeRaiReason"],a);a=O(b,["language"]);c!==void 0&&a!=null&&M(c,["parameters","language"],a);a=O(b,["outputMimeType"]);c!==void 0&&a!=null&&M(c,["parameters","outputOptions","mimeType"],a);a=O(b,["outputCompressionQuality"]);c!==void 0&&a!=null&&M(c,["parameters","outputOptions","compressionQuality"],a);if(O(b,["addWatermark"])!==void 0)throw Error("ed");if(O(b,["labels"])!==void 0)throw Error("ac");a=O(b,["imageSize"]);c!==void 0&&a!=null&&M(c,["parameters","sampleImageSize"], a);if(O(b,["enhancePrompt"])!==void 0)throw Error("fd");}return c},qr=function(a,b){var c={},d=O(b,["model"]);d!=null&&M(c,["_url","model"],lo(a,d));a=O(b,["prompt"]);a!=null&&M(c,["instances[0]","prompt"],a);b=O(b,["config"]);b!=null&&(a=O(b,["outputGcsUri"]),c!==void 0&&a!=null&&M(c,["parameters","storageUri"],a),a=O(b,["negativePrompt"]),c!==void 0&&a!=null&&M(c,["parameters","negativePrompt"],a),a=O(b,["numberOfImages"]),c!==void 0&&a!=null&&M(c,["parameters","sampleCount"],a),a=O(b,["aspectRatio"]), c!==void 0&&a!=null&&M(c,["parameters","aspectRatio"],a),a=O(b,["guidanceScale"]),c!==void 0&&a!=null&&M(c,["parameters","guidanceScale"],a),a=O(b,["seed"]),c!==void 0&&a!=null&&M(c,["parameters","seed"],a),a=O(b,["safetyFilterLevel"]),c!==void 0&&a!=null&&M(c,["parameters","safetySetting"],a),a=O(b,["personGeneration"]),c!==void 0&&a!=null&&M(c,["parameters","personGeneration"],a),a=O(b,["includeSafetyAttributes"]),c!==void 0&&a!=null&&M(c,["parameters","includeSafetyAttributes"],a),a=O(b,["includeRaiReason"]), c!==void 0&&a!=null&&M(c,["parameters","includeRaiReason"],a),a=O(b,["language"]),c!==void 0&&a!=null&&M(c,["parameters","language"],a),a=O(b,["outputMimeType"]),c!==void 0&&a!=null&&M(c,["parameters","outputOptions","mimeType"],a),a=O(b,["outputCompressionQuality"]),c!==void 0&&a!=null&&M(c,["parameters","outputOptions","compressionQuality"],a),a=O(b,["addWatermark"]),c!==void 0&&a!=null&&M(c,["parameters","addWatermark"],a),a=O(b,["labels"]),c!==void 0&&a!=null&&M(c,["labels"],a),a=O(b,["imageSize"]), c!==void 0&&a!=null&&M(c,["parameters","sampleImageSize"],a),b=O(b,["enhancePrompt"]),c!==void 0&&b!=null&&M(c,["parameters","enhancePrompt"],b));return c},sr=function(a){var b={},c=O(a,["sdkHttpResponse"]);c!=null&&M(b,["sdkHttpResponse"],c);c=O(a,["predictions"]);c!=null&&(Array.isArray(c)&&(c=c.map(function(d){var e={},f=O(d,["_self"]);if(f!=null){var g={},h=O(f,["bytesBase64Encoded"]);h!=null&&M(g,["imageBytes"],fo(h));f=O(f,["mimeType"]);f!=null&&M(g,["mimeType"],f);M(e,["image"],g)}g=O(d,["raiFilteredReason"]); g!=null&&M(e,["raiFilteredReason"],g);d=O(d,["_self"]);d!=null&&M(e,["safetyAttributes"],rr(d));return e})),M(b,["generatedImages"],c));a=O(a,["positivePromptSafetyAttributes"]);a!=null&&M(b,["positivePromptSafetyAttributes"],rr(a));return b},ur=function(a){var b={},c=O(a,["sdkHttpResponse"]);c!=null&&M(b,["sdkHttpResponse"],c);c=O(a,["predictions"]);c!=null&&(Array.isArray(c)&&(c=c.map(function(d){return Vq(d)})),M(b,["generatedImages"],c));a=O(a,["positivePromptSafetyAttributes"]);a!=null&&M(b, ["positivePromptSafetyAttributes"],tr(a));return b},wr=function(a,b){var c=O(a,["numberOfVideos"]);b!==void 0&&c!=null&&M(b,["parameters","sampleCount"],c);if(O(a,["outputGcsUri"])!==void 0)throw Error("bd");if(O(a,["fps"])!==void 0)throw Error("gd");c=O(a,["durationSeconds"]);b!==void 0&&c!=null&&M(b,["parameters","durationSeconds"],c);if(O(a,["seed"])!==void 0)throw Error("dd");c=O(a,["aspectRatio"]);b!==void 0&&c!=null&&M(b,["parameters","aspectRatio"],c);c=O(a,["resolution"]);b!==void 0&&c!=null&& M(b,["parameters","resolution"],c);c=O(a,["personGeneration"]);b!==void 0&&c!=null&&M(b,["parameters","personGeneration"],c);if(O(a,["pubsubTopic"])!==void 0)throw Error("hd");c=O(a,["negativePrompt"]);b!==void 0&&c!=null&&M(b,["parameters","negativePrompt"],c);c=O(a,["enhancePrompt"]);b!==void 0&&c!=null&&M(b,["parameters","enhancePrompt"],c);if(O(a,["generateAudio"])!==void 0)throw Error("id");c=O(a,["lastFrame"]);b!==void 0&&c!=null&&M(b,["instances[0]","lastFrame"],vr(c));c=O(a,["referenceImages"]); b!==void 0&&c!=null&&(Array.isArray(c)&&(c=c.map(function(d){var e={},f=O(d,["image"]);f!=null&&M(e,["image"],vr(f));d=O(d,["referenceType"]);d!=null&&M(e,["referenceType"],d);return e})),M(b,["instances[0]","referenceImages"],c));if(O(a,["mask"])!==void 0)throw Error("jd");if(O(a,["compressionQuality"])!==void 0)throw Error("kd");if(O(a,["labels"])!==void 0)throw Error("ac");},yr=function(a,b){var c=O(a,["numberOfVideos"]);b!==void 0&&c!=null&&M(b,["parameters","sampleCount"],c);c=O(a,["outputGcsUri"]); b!==void 0&&c!=null&&M(b,["parameters","storageUri"],c);c=O(a,["fps"]);b!==void 0&&c!=null&&M(b,["parameters","fps"],c);c=O(a,["durationSeconds"]);b!==void 0&&c!=null&&M(b,["parameters","durationSeconds"],c);c=O(a,["seed"]);b!==void 0&&c!=null&&M(b,["parameters","seed"],c);c=O(a,["aspectRatio"]);b!==void 0&&c!=null&&M(b,["parameters","aspectRatio"],c);c=O(a,["resolution"]);b!==void 0&&c!=null&&M(b,["parameters","resolution"],c);c=O(a,["personGeneration"]);b!==void 0&&c!=null&&M(b,["parameters","personGeneration"], c);c=O(a,["pubsubTopic"]);b!==void 0&&c!=null&&M(b,["parameters","pubsubTopic"],c);c=O(a,["negativePrompt"]);b!==void 0&&c!=null&&M(b,["parameters","negativePrompt"],c);c=O(a,["enhancePrompt"]);b!==void 0&&c!=null&&M(b,["parameters","enhancePrompt"],c);c=O(a,["generateAudio"]);b!==void 0&&c!=null&&M(b,["parameters","generateAudio"],c);c=O(a,["lastFrame"]);b!==void 0&&c!=null&&M(b,["instances[0]","lastFrame"],Tq(c));c=O(a,["referenceImages"]);b!==void 0&&c!=null&&(Array.isArray(c)&&(c=c.map(function(d){var e= {},f=O(d,["image"]);f!=null&&M(e,["image"],Tq(f));d=O(d,["referenceType"]);d!=null&&M(e,["referenceType"],d);return e})),M(b,["instances[0]","referenceImages"],c));c=O(a,["mask"]);b!==void 0&&c!=null&&M(b,["instances[0]","mask"],xr(c));c=O(a,["compressionQuality"]);b!==void 0&&c!=null&&M(b,["parameters","compressionQuality"],c);a=O(a,["labels"]);b!==void 0&&a!=null&&M(b,["labels"],a)},Ar=function(a,b){var c={},d=O(b,["model"]);d!=null&&M(c,["_url","model"],lo(a,d));a=O(b,["prompt"]);a!=null&&M(c, ["instances[0]","prompt"],a);a=O(b,["image"]);a!=null&&M(c,["instances[0]","image"],vr(a));a=O(b,["video"]);a!=null&&M(c,["instances[0]","video"],zr(a));a=O(b,["source"]);a!=null&&(d=O(a,["prompt"]),c!==void 0&&d!=null&&M(c,["instances[0]","prompt"],d),d=O(a,["image"]),c!==void 0&&d!=null&&M(c,["instances[0]","image"],vr(d)),a=O(a,["video"]),c!==void 0&&a!=null&&M(c,["instances[0]","video"],zr(a)));b=O(b,["config"]);b!=null&&wr(b,c);return c},Cr=function(a,b){var c={},d=O(b,["model"]);d!=null&&M(c, ["_url","model"],lo(a,d));a=O(b,["prompt"]);a!=null&&M(c,["instances[0]","prompt"],a);a=O(b,["image"]);a!=null&&M(c,["instances[0]","image"],Tq(a));a=O(b,["video"]);a!=null&&M(c,["instances[0]","video"],Br(a));a=O(b,["source"]);a!=null&&(d=O(a,["prompt"]),c!==void 0&&d!=null&&M(c,["instances[0]","prompt"],d),d=O(a,["image"]),c!==void 0&&d!=null&&M(c,["instances[0]","image"],Tq(d)),a=O(a,["video"]),c!==void 0&&a!=null&&M(c,["instances[0]","video"],Br(a)));b=O(b,["config"]);b!=null&&yr(b,c);return c}, Dr=function(a){var b={},c=O(a,["generatedSamples"]);c!=null&&(Array.isArray(c)&&(c=c.map(function(d){var e={},f=O(d,["video"]);if(f!=null){d={};var g=O(f,["uri"]);g!=null&&M(d,["uri"],g);g=O(f,["encodedVideo"]);g!=null&&M(d,["videoBytes"],fo(g));f=O(f,["encoding"]);f!=null&&M(d,["mimeType"],f);M(e,["video"],d)}return e})),M(b,["generatedVideos"],c));c=O(a,["raiMediaFilteredCount"]);c!=null&&M(b,["raiMediaFilteredCount"],c);a=O(a,["raiMediaFilteredReasons"]);a!=null&&M(b,["raiMediaFilteredReasons"], a);return b},Er=function(a){var b={},c=O(a,["videos"]);c!=null&&(Array.isArray(c)&&(c=c.map(function(d){var e={},f=O(d,["_self"]);if(f!=null){d={};var g=O(f,["gcsUri"]);g!=null&&M(d,["uri"],g);g=O(f,["bytesBase64Encoded"]);g!=null&&M(d,["videoBytes"],fo(g));f=O(f,["mimeType"]);f!=null&&M(d,["mimeType"],f);M(e,["video"],d)}return e})),M(b,["generatedVideos"],c));c=O(a,["raiMediaFilteredCount"]);c!=null&&M(b,["raiMediaFilteredCount"],c);a=O(a,["raiMediaFilteredReasons"]);a!=null&&M(b,["raiMediaFilteredReasons"], a);return b},Vq=function(a){var b={},c=O(a,["_self"]);if(c!=null){var d={},e=O(c,["gcsUri"]);e!=null&&M(d,["gcsUri"],e);e=O(c,["bytesBase64Encoded"]);e!=null&&M(d,["imageBytes"],fo(e));c=O(c,["mimeType"]);c!=null&&M(d,["mimeType"],c);M(b,["image"],d)}d=O(a,["raiFilteredReason"]);d!=null&&M(b,["raiFilteredReason"],d);d=O(a,["_self"]);d!=null&&M(b,["safetyAttributes"],tr(d));a=O(a,["prompt"]);a!=null&&M(b,["enhancedPrompt"],a);return b},Fr=function(a,b){var c={};b=O(b,["model"]);b!=null&&M(c,["_url", "name"],lo(a,b));return c},Gr=function(a,b){var c={};b=O(b,["model"]);b!=null&&M(c,["_url","name"],lo(a,b));return c},Hr=function(a){var b={},c=O(a,["authConfig"]);if(c!=null){var d={},e=O(c,["apiKey"]);e!=null&&M(d,["apiKey"],e);if(O(c,["apiKeyConfig"])!==void 0)throw Error("Fb");if(O(c,["authType"])!==void 0)throw Error("Gb");if(O(c,["googleServiceAccountConfig"])!==void 0)throw Error("Hb");if(O(c,["httpBasicAuthConfig"])!==void 0)throw Error("Ib");if(O(c,["oauthConfig"])!==void 0)throw Error("Jb"); if(O(c,["oidcConfig"])!==void 0)throw Error("Kb");M(b,["authConfig"],d)}a=O(a,["enableWidget"]);a!=null&&M(b,["enableWidget"],a);return b},Ir=function(a){var b={},c=O(a,["searchTypes"]);c!=null&&M(b,["searchTypes"],c);if(O(a,["blockingConfidence"])!==void 0)throw Error("dc");if(O(a,["excludeDomains"])!==void 0)throw Error("ec");a=O(a,["timeRangeFilter"]);a!=null&&M(b,["timeRangeFilter"],a);return b},er=function(a){var b={},c=O(a,["aspectRatio"]);c!=null&&M(b,["aspectRatio"],c);c=O(a,["imageSize"]); c!=null&&M(b,["imageSize"],c);if(O(a,["personGeneration"])!==void 0)throw Error("fc");if(O(a,["prominentPeople"])!==void 0)throw Error("gc");if(O(a,["outputMimeType"])!==void 0)throw Error("hc");if(O(a,["outputCompressionQuality"])!==void 0)throw Error("ic");if(O(a,["imageOutputOptions"])!==void 0)throw Error("jc");return b},jr=function(a){var b={},c=O(a,["aspectRatio"]);c!=null&&M(b,["aspectRatio"],c);c=O(a,["imageSize"]);c!=null&&M(b,["imageSize"],c);c=O(a,["personGeneration"]);c!=null&&M(b,["personGeneration"], c);c=O(a,["prominentPeople"]);c!=null&&M(b,["prominentPeople"],c);c=O(a,["outputMimeType"]);c!=null&&M(b,["imageOutputOptions","mimeType"],c);c=O(a,["outputCompressionQuality"]);c!=null&&M(b,["imageOutputOptions","compressionQuality"],c);a=O(a,["imageOutputOptions"]);a!=null&&M(b,["imageOutputOptions"],a);return b},vr=function(a){var b={};if(O(a,["gcsUri"])!==void 0)throw Error("Pb");var c=O(a,["imageBytes"]);c!=null&&M(b,["bytesBase64Encoded"],fo(c));a=O(a,["mimeType"]);a!=null&&M(b,["mimeType"], a);return b},Tq=function(a){var b={},c=O(a,["gcsUri"]);c!=null&&M(b,["gcsUri"],c);c=O(a,["imageBytes"]);c!=null&&M(b,["bytesBase64Encoded"],fo(c));a=O(a,["mimeType"]);a!=null&&M(b,["mimeType"],a);return b},Jr=function(a,b){var c={};b=O(b,["config"]);if(b!=null){var d=O(b,["pageSize"]);c!==void 0&&d!=null&&M(c,["_query","pageSize"],d);d=O(b,["pageToken"]);c!==void 0&&d!=null&&M(c,["_query","pageToken"],d);d=O(b,["filter"]);c!==void 0&&d!=null&&M(c,["_query","filter"],d);b=O(b,["queryBase"]);c!==void 0&& b!=null&&M(c,["_url","models_url"],Eo(a,b))}return c},Kr=function(a,b){var c={};b=O(b,["config"]);if(b!=null){var d=O(b,["pageSize"]);c!==void 0&&d!=null&&M(c,["_query","pageSize"],d);d=O(b,["pageToken"]);c!==void 0&&d!=null&&M(c,["_query","pageToken"],d);d=O(b,["filter"]);c!==void 0&&d!=null&&M(c,["_query","filter"],d);b=O(b,["queryBase"]);c!==void 0&&b!=null&&M(c,["_url","models_url"],Eo(a,b))}return c},Mr=function(a){var b={},c=O(a,["sdkHttpResponse"]);c!=null&&M(b,["sdkHttpResponse"],c);c=O(a, ["nextPageToken"]);c!=null&&M(b,["nextPageToken"],c);a=O(a,["_self"]);a!=null&&(a=Fo(a),Array.isArray(a)&&(a=a.map(function(d){return Lr(d)})),M(b,["models"],a));return b},Or=function(a){var b={},c=O(a,["sdkHttpResponse"]);c!=null&&M(b,["sdkHttpResponse"],c);c=O(a,["nextPageToken"]);c!=null&&M(b,["nextPageToken"],c);a=O(a,["_self"]);a!=null&&(a=Fo(a),Array.isArray(a)&&(a=a.map(function(d){return Nr(d)})),M(b,["models"],a));return b},Lr=function(a){var b={},c=O(a,["name"]);c!=null&&M(b,["name"],c); c=O(a,["displayName"]);c!=null&&M(b,["displayName"],c);c=O(a,["description"]);c!=null&&M(b,["description"],c);c=O(a,["version"]);c!=null&&M(b,["version"],c);var d=O(a,["_self"]);if(d!=null){c={};var e=O(d,["baseModel"]);e!=null&&M(c,["baseModel"],e);e=O(d,["createTime"]);e!=null&&M(c,["createTime"],e);d=O(d,["updateTime"]);d!=null&&M(c,["updateTime"],d);M(b,["tunedModelInfo"],c)}c=O(a,["inputTokenLimit"]);c!=null&&M(b,["inputTokenLimit"],c);c=O(a,["outputTokenLimit"]);c!=null&&M(b,["outputTokenLimit"], c);c=O(a,["supportedGenerationMethods"]);c!=null&&M(b,["supportedActions"],c);c=O(a,["temperature"]);c!=null&&M(b,["temperature"],c);c=O(a,["maxTemperature"]);c!=null&&M(b,["maxTemperature"],c);c=O(a,["topP"]);c!=null&&M(b,["topP"],c);c=O(a,["topK"]);c!=null&&M(b,["topK"],c);a=O(a,["thinking"]);a!=null&&M(b,["thinking"],a);return b},Nr=function(a){var b={},c=O(a,["name"]);c!=null&&M(b,["name"],c);c=O(a,["displayName"]);c!=null&&M(b,["displayName"],c);c=O(a,["description"]);c!=null&&M(b,["description"], c);c=O(a,["versionId"]);c!=null&&M(b,["version"],c);c=O(a,["deployedModels"]);c!=null&&(Array.isArray(c)&&(c=c.map(function(d){var e={},f=O(d,["endpoint"]);f!=null&&M(e,["name"],f);d=O(d,["deployedModelId"]);d!=null&&M(e,["deployedModelId"],d);return e})),M(b,["endpoints"],c));c=O(a,["labels"]);c!=null&&M(b,["labels"],c);c=O(a,["_self"]);c!=null&&M(b,["tunedModelInfo"],Pr(c));c=O(a,["defaultCheckpointId"]);c!=null&&M(b,["defaultCheckpointId"],c);a=O(a,["checkpoints"]);a!=null&&(Array.isArray(a)&& (a=a.map(function(d){return d})),M(b,["checkpoints"],a));return b},Rr=function(a){var b={};a=O(a,["speakerVoiceConfigs"]);a!=null&&(Array.isArray(a)&&(a=a.map(function(c){var d={},e=O(c,["speaker"]);e!=null&&M(d,["speaker"],e);c=O(c,["voiceConfig"]);c!=null&&M(d,["voiceConfig"],Qr(c));return d})),M(b,["speakerVoiceConfigs"],a));return b},rr=function(a){var b={},c=O(a,["safetyAttributes","categories"]);c!=null&&M(b,["categories"],c);c=O(a,["safetyAttributes","scores"]);c!=null&&M(b,["scores"],c);a= O(a,["contentType"]);a!=null&&M(b,["contentType"],a);return b},tr=function(a){var b={},c=O(a,["safetyAttributes","categories"]);c!=null&&M(b,["categories"],c);c=O(a,["safetyAttributes","scores"]);c!=null&&M(b,["scores"],c);a=O(a,["contentType"]);a!=null&&M(b,["contentType"],a);return b},ir=function(a){var b={},c=O(a,["voiceConfig"]);c!=null&&M(b,["voiceConfig"],Qr(c));c=O(a,["languageCode"]);c!=null&&M(b,["languageCode"],c);a=O(a,["multiSpeakerVoiceConfig"]);a!=null&&M(b,["multiSpeakerVoiceConfig"], Rr(a));return b},dr=function(a){var b={},c=O(a,["retrievalConfig"]);c!=null&&M(b,["retrievalConfig"],c);c=O(a,["functionCallingConfig"]);if(c!=null){var d={},e=O(c,["allowedFunctionNames"]);e!=null&&M(d,["allowedFunctionNames"],e);e=O(c,["mode"]);e!=null&&M(d,["mode"],e);if(O(c,["streamFunctionCallArguments"])!==void 0)throw Error("Yb");M(b,["functionCallingConfig"],d)}a=O(a,["includeServerSideToolInvocations"]);a!=null&&M(b,["includeServerSideToolInvocations"],a);return b},hr=function(a){var b={}, c=O(a,["retrievalConfig"]);c!=null&&M(b,["retrievalConfig"],c);c=O(a,["functionCallingConfig"]);c!=null&&M(b,["functionCallingConfig"],c);if(O(a,["includeServerSideToolInvocations"])!==void 0)throw Error("yc");return b},cr=function(a){var b={};if(O(a,["retrieval"])!==void 0)throw Error("mc");var c=O(a,["computerUse"]);c!=null&&M(b,["computerUse"],c);c=O(a,["fileSearch"]);c!=null&&M(b,["fileSearch"],c);c=O(a,["googleSearch"]);c!=null&&M(b,["googleSearch"],Ir(c));c=O(a,["googleMaps"]);c!=null&&M(b, ["googleMaps"],Hr(c));c=O(a,["codeExecution"]);c!=null&&M(b,["codeExecution"],c);if(O(a,["enterpriseWebSearch"])!==void 0)throw Error("nc");c=O(a,["functionDeclarations"]);c!=null&&(Array.isArray(c)&&(c=c.map(function(d){return d})),M(b,["functionDeclarations"],c));c=O(a,["googleSearchRetrieval"]);c!=null&&M(b,["googleSearchRetrieval"],c);if(O(a,["parallelAiSearch"])!==void 0)throw Error("oc");c=O(a,["urlContext"]);c!=null&&M(b,["urlContext"],c);a=O(a,["mcpServers"]);a!=null&&(Array.isArray(a)&&(a= a.map(function(d){return d})),M(b,["mcpServers"],a));return b},gr=function(a){var b={},c=O(a,["retrieval"]);c!=null&&M(b,["retrieval"],c);c=O(a,["computerUse"]);c!=null&&M(b,["computerUse"],c);if(O(a,["fileSearch"])!==void 0)throw Error("zc");c=O(a,["googleSearch"]);c!=null&&M(b,["googleSearch"],c);c=O(a,["googleMaps"]);c!=null&&M(b,["googleMaps"],c);c=O(a,["codeExecution"]);c!=null&&M(b,["codeExecution"],c);c=O(a,["enterpriseWebSearch"]);c!=null&&M(b,["enterpriseWebSearch"],c);c=O(a,["functionDeclarations"]); c!=null&&(Array.isArray(c)&&(c=c.map(function(d){var e={},f=O(d,["description"]);f!=null&&M(e,["description"],f);f=O(d,["name"]);f!=null&&M(e,["name"],f);f=O(d,["parameters"]);f!=null&&M(e,["parameters"],f);f=O(d,["parametersJsonSchema"]);f!=null&&M(e,["parametersJsonSchema"],f);f=O(d,["response"]);f!=null&&M(e,["response"],f);f=O(d,["responseJsonSchema"]);f!=null&&M(e,["responseJsonSchema"],f);if(O(d,["behavior"])!==void 0)throw Error("uc");return e})),M(b,["functionDeclarations"],c));c=O(a,["googleSearchRetrieval"]); c!=null&&M(b,["googleSearchRetrieval"],c);c=O(a,["parallelAiSearch"]);c!=null&&M(b,["parallelAiSearch"],c);c=O(a,["urlContext"]);c!=null&&M(b,["urlContext"],c);if(O(a,["mcpServers"])!==void 0)throw Error("Ac");return b},Pr=function(a){var b={},c=O(a,["labels","google-vertex-llm-tuning-base-model-id"]);c!=null&&M(b,["baseModel"],c);c=O(a,["createTime"]);c!=null&&M(b,["createTime"],c);a=O(a,["updateTime"]);a!=null&&M(b,["updateTime"],a);return b},Sr=function(a,b){var c={},d=O(b,["model"]);d!=null&& M(c,["_url","name"],lo(a,d));a=O(b,["config"]);a!=null&&(b=O(a,["displayName"]),c!==void 0&&b!=null&&M(c,["displayName"],b),b=O(a,["description"]),c!==void 0&&b!=null&&M(c,["description"],b),a=O(a,["defaultCheckpointId"]),c!==void 0&&a!=null&&M(c,["defaultCheckpointId"],a));return c},Tr=function(a,b){var c={},d=O(b,["model"]);d!=null&&M(c,["_url","model"],lo(a,d));a=O(b,["config"]);a!=null&&(b=O(a,["displayName"]),c!==void 0&&b!=null&&M(c,["displayName"],b),b=O(a,["description"]),c!==void 0&&b!=null&& M(c,["description"],b),a=O(a,["defaultCheckpointId"]),c!==void 0&&a!=null&&M(c,["defaultCheckpointId"],a));return c},Ur=function(a,b){var c={},d=O(b,["model"]);d!=null&&M(c,["_url","model"],lo(a,d));a=O(b,["image"]);a!=null&&M(c,["instances[0]","image"],Tq(a));a=O(b,["upscaleFactor"]);a!=null&&M(c,["parameters","upscaleConfig","upscaleFactor"],a);b=O(b,["config"]);b!=null&&(a=O(b,["outputGcsUri"]),c!==void 0&&a!=null&&M(c,["parameters","storageUri"],a),a=O(b,["safetyFilterLevel"]),c!==void 0&&a!= null&&M(c,["parameters","safetySetting"],a),a=O(b,["personGeneration"]),c!==void 0&&a!=null&&M(c,["parameters","personGeneration"],a),a=O(b,["includeRaiReason"]),c!==void 0&&a!=null&&M(c,["parameters","includeRaiReason"],a),a=O(b,["outputMimeType"]),c!==void 0&&a!=null&&M(c,["parameters","outputOptions","mimeType"],a),a=O(b,["outputCompressionQuality"]),c!==void 0&&a!=null&&M(c,["parameters","outputOptions","compressionQuality"],a),a=O(b,["enhanceInputImage"]),c!==void 0&&a!=null&&M(c,["parameters", "upscaleConfig","enhanceInputImage"],a),a=O(b,["imagePreservationFactor"]),c!==void 0&&a!=null&&M(c,["parameters","upscaleConfig","imagePreservationFactor"],a),a=O(b,["labels"]),c!==void 0&&a!=null&&M(c,["labels"],a),a=O(b,["numberOfImages"]),c!==void 0&&a!=null&&M(c,["parameters","sampleCount"],a),b=O(b,["mode"]),c!==void 0&&b!=null&&M(c,["parameters","mode"],b));return c},Vr=function(a){var b={},c=O(a,["sdkHttpResponse"]);c!=null&&M(b,["sdkHttpResponse"],c);a=O(a,["predictions"]);a!=null&&(Array.isArray(a)&& (a=a.map(function(d){return Vq(d)})),M(b,["generatedImages"],a));return b},xr=function(a){var b={},c=O(a,["image"]);c!=null&&M(b,["_self"],Tq(c));a=O(a,["maskMode"]);a!=null&&M(b,["maskMode"],a);return b},zr=function(a){var b={},c=O(a,["uri"]);c!=null&&M(b,["uri"],c);c=O(a,["videoBytes"]);c!=null&&M(b,["encodedVideo"],fo(c));a=O(a,["mimeType"]);a!=null&&M(b,["encoding"],a);return b},Br=function(a){var b={},c=O(a,["uri"]);c!=null&&M(b,["gcsUri"],c);c=O(a,["videoBytes"]);c!=null&&M(b,["bytesBase64Encoded"], fo(c));a=O(a,["mimeType"]);a!=null&&M(b,["mimeType"],a);return b},Qr=function(a){var b={},c=O(a,["replicatedVoiceConfig"]);if(c!=null){var d={},e=O(c,["mimeType"]);e!=null&&M(d,["mimeType"],e);c=O(c,["voiceSampleAudio"]);c!=null&&M(d,["voiceSampleAudio"],c);M(b,["replicatedVoiceConfig"],d)}a=O(a,["prebuiltVoiceConfig"]);a!=null&&M(b,["prebuiltVoiceConfig"],a);return b},Wr=function(a){a=_.A(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,typeof b==="object"&&"inputSchema"in b)return!0;return!1}, Xr=function(a){var b,c=(b=a["x-goog-api-client"])!=null?b:"";a["x-goog-api-client"]=(c+" mcp_used/unknown").trimStart()},Zr=function(a){var b;if(a==null?0:(b=a.automaticFunctionCalling)==null?0:b.disable)return!0;b=!1;var c,d=_.A((c=a==null?void 0:a.tools)!=null?c:[]);for(c=d.next();!c.done;c=d.next())if(Yr(c.value)){b=!0;break}if(!b)return!0;var e;return(a=a==null?void 0:(e=a.automaticFunctionCalling)==null?void 0:e.maximumRemoteCalls)&&(a<0||!Number.isInteger(a))||a==0?(console.warn("Invalid maximumRemoteCalls value provided for automatic function calling. Disabled automatic function calling. Please provide a valid integer value greater than 0. maximumRemoteCalls provided:", a),!0):!1},Yr=function(a){return"callTool"in a&&typeof a.wg==="function"},$r=function(a){var b,c,d;return(d=(b=a.config)==null?void 0:(c=b.tools)==null?void 0:c.some(function(e){return Yr(e)}))!=null?d:!1},as=function(a){var b=[],c;if(!(a==null?0:(c=a.config)==null?0:c.tools))return b;a.config.tools.forEach(function(d,e){Yr(d)||d.functionDeclarations&&d.functionDeclarations.length>0&&b.push(e)});return b},bs=function(a){var b;return!(a==null?0:(b=a.automaticFunctionCalling)==null?0:b.ignoreCallHistory)}, cs=function(a){if(O(a,["languageCodes"])!==void 0)throw Error("xd");return{}},ds=function(a){var b={},c=O(a,["parts"]);c!=null&&(Array.isArray(c)&&(c=c.map(function(d){var e={},f=O(d,["mediaResolution"]);f!=null&&M(e,["mediaResolution"],f);f=O(d,["codeExecutionResult"]);f!=null&&M(e,["codeExecutionResult"],f);f=O(d,["executableCode"]);f!=null&&M(e,["executableCode"],f);var g=O(d,["fileData"]);if(g!=null){f={};if(O(g,["displayName"])!==void 0)throw Error("Sb");var h=O(g,["fileUri"]);h!=null&&M(f,["fileUri"], h);g=O(g,["mimeType"]);g!=null&&M(f,["mimeType"],g);M(e,["fileData"],f)}f=O(d,["functionCall"]);if(f!=null){g={};h=O(f,["id"]);h!=null&&M(g,["id"],h);h=O(f,["args"]);h!=null&&M(g,["args"],h);h=O(f,["name"]);h!=null&&M(g,["name"],h);if(O(f,["partialArgs"])!==void 0)throw Error("Wb");if(O(f,["willContinue"])!==void 0)throw Error("Xb");M(e,["functionCall"],g)}f=O(d,["functionResponse"]);f!=null&&M(e,["functionResponse"],f);g=O(d,["inlineData"]);if(g!=null){f={};h=O(g,["data"]);h!=null&&M(f,["data"], h);if(O(g,["displayName"])!==void 0)throw Error("Sb");g=O(g,["mimeType"]);g!=null&&M(f,["mimeType"],g);M(e,["inlineData"],f)}f=O(d,["text"]);f!=null&&M(e,["text"],f);f=O(d,["thought"]);f!=null&&M(e,["thought"],f);f=O(d,["thoughtSignature"]);f!=null&&M(e,["thoughtSignature"],f);f=O(d,["videoMetadata"]);f!=null&&M(e,["videoMetadata"],f);f=O(d,["toolCall"]);f!=null&&M(e,["toolCall"],f);f=O(d,["toolResponse"]);f!=null&&M(e,["toolResponse"],f);d=O(d,["partMetadata"]);d!=null&&M(e,["partMetadata"],d);return e})), M(b,["parts"],c));a=O(a,["role"]);a!=null&&M(b,["role"],a);return b},fs=function(a,b){var c={};b=O(b,["config"]);if(b!=null){var d=O(b,["expireTime"]);c!==void 0&&d!=null&&M(c,["expireTime"],d);d=O(b,["newSessionExpireTime"]);c!==void 0&&d!=null&&M(c,["newSessionExpireTime"],d);d=O(b,["uses"]);c!==void 0&&d!=null&&M(c,["uses"],d);var e=O(b,["liveConnectConstraints"]);if(c!==void 0&&e!=null){d={};var f=O(e,["model"]);f!=null&&M(d,["setup","model"],lo(a,f));a=O(e,["config"]);a!=null&&M(d,["config"], es(a,d));M(c,["bidiGenerateContentSetup"],d)}a=O(b,["lockAdditionalFields"]);c!==void 0&&a!=null&&M(c,["fieldMask"],a);M(c,["config"],{})}return c},gs=function(a){var b={},c=O(a,["authConfig"]);if(c!=null){var d={},e=O(c,["apiKey"]);e!=null&&M(d,["apiKey"],e);if(O(c,["apiKeyConfig"])!==void 0)throw Error("Fb");if(O(c,["authType"])!==void 0)throw Error("Gb");if(O(c,["googleServiceAccountConfig"])!==void 0)throw Error("Hb");if(O(c,["httpBasicAuthConfig"])!==void 0)throw Error("Ib");if(O(c,["oauthConfig"])!== void 0)throw Error("Jb");if(O(c,["oidcConfig"])!==void 0)throw Error("Kb");M(b,["authConfig"],d)}a=O(a,["enableWidget"]);a!=null&&M(b,["enableWidget"],a);return b},hs=function(a){var b={},c=O(a,["searchTypes"]);c!=null&&M(b,["searchTypes"],c);if(O(a,["blockingConfidence"])!==void 0)throw Error("dc");if(O(a,["excludeDomains"])!==void 0)throw Error("ec");a=O(a,["timeRangeFilter"]);a!=null&&M(b,["timeRangeFilter"],a);return b},es=function(a,b){var c=O(a,["generationConfig"]);b!==void 0&&c!=null&&M(b, ["setup","generationConfig"],c);c=O(a,["responseModalities"]);b!==void 0&&c!=null&&M(b,["setup","generationConfig","responseModalities"],c);c=O(a,["temperature"]);b!==void 0&&c!=null&&M(b,["setup","generationConfig","temperature"],c);c=O(a,["topP"]);b!==void 0&&c!=null&&M(b,["setup","generationConfig","topP"],c);c=O(a,["topK"]);b!==void 0&&c!=null&&M(b,["setup","generationConfig","topK"],c);c=O(a,["maxOutputTokens"]);b!==void 0&&c!=null&&M(b,["setup","generationConfig","maxOutputTokens"],c);c=O(a, ["mediaResolution"]);b!==void 0&&c!=null&&M(b,["setup","generationConfig","mediaResolution"],c);c=O(a,["seed"]);b!==void 0&&c!=null&&M(b,["setup","generationConfig","seed"],c);c=O(a,["speechConfig"]);if(b!==void 0&&c!=null){if("multiSpeakerVoiceConfig"in c)throw Error("sb");M(b,["setup","generationConfig","speechConfig"],c)}c=O(a,["thinkingConfig"]);b!==void 0&&c!=null&&M(b,["setup","generationConfig","thinkingConfig"],c);c=O(a,["enableAffectiveDialog"]);b!==void 0&&c!=null&&M(b,["setup","generationConfig", "enableAffectiveDialog"],c);c=O(a,["systemInstruction"]);b!==void 0&&c!=null&&M(b,["setup","systemInstruction"],ds(so(c)));c=O(a,["tools"]);b!==void 0&&c!=null&&(c=Ao(c),Array.isArray(c)&&(c=c.map(function(d){return is(zo(d))})),M(b,["setup","tools"],c));c=O(a,["sessionResumption"]);b!==void 0&&c!=null&&M(b,["setup","sessionResumption"],js(c));c=O(a,["inputAudioTranscription"]);b!==void 0&&c!=null&&M(b,["setup","inputAudioTranscription"],cs(c));c=O(a,["outputAudioTranscription"]);b!==void 0&&c!=null&& M(b,["setup","outputAudioTranscription"],cs(c));c=O(a,["realtimeInputConfig"]);b!==void 0&&c!=null&&M(b,["setup","realtimeInputConfig"],c);c=O(a,["contextWindowCompression"]);b!==void 0&&c!=null&&M(b,["setup","contextWindowCompression"],c);c=O(a,["proactivity"]);b!==void 0&&c!=null&&M(b,["setup","proactivity"],c);if(O(a,["explicitVadSignal"])!==void 0)throw Error("yd");return{}},js=function(a){var b={},c=O(a,["handle"]);c!=null&&M(b,["handle"],c);if(O(a,["transparent"])!==void 0)throw Error("zd"); return b},is=function(a){var b={};if(O(a,["retrieval"])!==void 0)throw Error("mc");var c=O(a,["computerUse"]);c!=null&&M(b,["computerUse"],c);c=O(a,["fileSearch"]);c!=null&&M(b,["fileSearch"],c);c=O(a,["googleSearch"]);c!=null&&M(b,["googleSearch"],hs(c));c=O(a,["googleMaps"]);c!=null&&M(b,["googleMaps"],gs(c));c=O(a,["codeExecution"]);c!=null&&M(b,["codeExecution"],c);if(O(a,["enterpriseWebSearch"])!==void 0)throw Error("nc");c=O(a,["functionDeclarations"]);c!=null&&(Array.isArray(c)&&(c=c.map(function(d){return d})), M(b,["functionDeclarations"],c));c=O(a,["googleSearchRetrieval"]);c!=null&&M(b,["googleSearchRetrieval"],c);if(O(a,["parallelAiSearch"])!==void 0)throw Error("oc");c=O(a,["urlContext"]);c!=null&&M(b,["urlContext"],c);a=O(a,["mcpServers"]);a!=null&&(Array.isArray(a)&&(a=a.map(function(d){return d})),M(b,["mcpServers"],a));return b},ks=function(a){var b=[],c={},d;for(d in a)if(c={Cc:c.Cc},c.Cc=d,Object.prototype.hasOwnProperty.call(a,c.Cc)){var e=a[c.Cc];typeof e==="object"&&e!=null&&Object.keys(e).length> 0?(e=Object.keys(e).map(function(f){return function(g){return f.Cc+"."+g}}(c)),b.push.apply(b,_.mc(e))):b.push(c.Cc)}return b.join(",")},ls=function(a,b){var c=null,d=a.bidiGenerateContentSetup;typeof d==="object"&&d!==null&&"setup"in d?(d=d.setup,typeof d==="object"&&d!==null?c=a.bidiGenerateContentSetup=d:delete a.bidiGenerateContentSetup):d!==void 0&&delete a.bidiGenerateContentSetup;d=a.fieldMask;if(c)if(c=ks(c),Array.isArray(b==null?void 0:b.lockAdditionalFields)&&(b==null?void 0:b.lockAdditionalFields.length)=== 0)c?a.fieldMask=c:delete a.fieldMask;else if((b==null?0:b.lockAdditionalFields)&&b.lockAdditionalFields.length>0&&d!==null&&Array.isArray(d)&&d.length>0){var e="temperature topK topP maxOutputTokens responseModalities seed speechConfig".split(" ");b=[];d.length>0&&(b=d.map(function(f){return e.includes(f)?"generationConfig."+f:f}));d=[];c&&d.push(c);b.length>0&&d.push.apply(d,_.mc(b));d.length>0?a.fieldMask=d.join(","):delete a.fieldMask}else delete a.fieldMask;else d!==null&&Array.isArray(d)&&d.length> 0?a.fieldMask=d.join(","):delete a.fieldMask;return a},ms=function(a){var b={};a=O(a,["name"]);a!=null&&M(b,["_url","name"],a);return b},ns=function(a){var b={};a=O(a,["name"]);a!=null&&M(b,["_url","name"],a);return b},ps=function(a){var b={},c=O(a,["baseModel"]);c!=null&&M(b,["baseModel"],c);c=O(a,["preTunedModel"]);c!=null&&M(b,["preTunedModel"],c);c=O(a,["trainingDataset"]);c!=null&&os(c);a=O(a,["config"]);if(a!=null){c={};if(O(a,["validationDataset"])!==void 0)throw Error("Bd");var d=O(a,["tunedModelDisplayName"]); b!==void 0&&d!=null&&M(b,["displayName"],d);if(O(a,["description"])!==void 0)throw Error("Cd");d=O(a,["epochCount"]);b!==void 0&&d!=null&&M(b,["tuningTask","hyperparameters","epochCount"],d);d=O(a,["learningRateMultiplier"]);d!=null&&M(c,["tuningTask","hyperparameters","learningRateMultiplier"],d);if(O(a,["exportLastCheckpointOnly"])!==void 0)throw Error("Dd");if(O(a,["preTunedModelCheckpointId"])!==void 0)throw Error("Ed");if(O(a,["adapterSize"])!==void 0)throw Error("Fd");if(O(a,["tuningMode"])!== void 0)throw Error("Gd");if(O(a,["customBaseModel"])!==void 0)throw Error("Hd");c=O(a,["batchSize"]);b!==void 0&&c!=null&&M(b,["tuningTask","hyperparameters","batchSize"],c);c=O(a,["learningRate"]);b!==void 0&&c!=null&&M(b,["tuningTask","hyperparameters","learningRate"],c);if(O(a,["labels"])!==void 0)throw Error("ac");if(O(a,["beta"])!==void 0)throw Error("Id");if(O(a,["baseTeacherModel"])!==void 0)throw Error("Jd");if(O(a,["tunedTeacherModelSource"])!==void 0)throw Error("Kd");if(O(a,["sftLossWeightMultiplier"])!== void 0)throw Error("Ld");if(O(a,["outputUri"])!==void 0)throw Error("Md");if(O(a,["encryptionSpec"])!==void 0)throw Error("Nd");}return b},rs=function(a,b){var c={},d=O(a,["baseModel"]);d!=null&&M(c,["baseModel"],d);d=O(a,["preTunedModel"]);d!=null&&M(c,["preTunedModel"],d);d=O(a,["trainingDataset"]);if(d!=null){var e=O(b,["config","method"]);e===void 0&&(e="SUPERVISED_FINE_TUNING");e==="SUPERVISED_FINE_TUNING"?(e=O(d,["gcsUri"]),c!==void 0&&e!=null&&M(c,["supervisedTuningSpec","trainingDatasetUri"], e)):e==="PREFERENCE_TUNING"?(e=O(d,["gcsUri"]),c!==void 0&&e!=null&&M(c,["preferenceOptimizationSpec","trainingDatasetUri"],e)):e==="DISTILLATION"&&(e=O(d,["gcsUri"]),c!==void 0&&e!=null&&M(c,["distillationSpec","promptDatasetUri"],e));e=O(b,["config","method"]);e===void 0&&(e="SUPERVISED_FINE_TUNING");e==="SUPERVISED_FINE_TUNING"?(e=O(d,["vertexDatasetResource"]),c!==void 0&&e!=null&&M(c,["supervisedTuningSpec","trainingDatasetUri"],e)):e==="PREFERENCE_TUNING"?(e=O(d,["vertexDatasetResource"]),c!== void 0&&e!=null&&M(c,["preferenceOptimizationSpec","trainingDatasetUri"],e)):e==="DISTILLATION"&&(e=O(d,["vertexDatasetResource"]),c!==void 0&&e!=null&&M(c,["distillationSpec","promptDatasetUri"],e));if(O(d,["examples"])!==void 0)throw Error("Pd");}a=O(a,["config"]);a!=null&&(d=O(b,["config","method"]),d===void 0&&(d="SUPERVISED_FINE_TUNING"),d==="SUPERVISED_FINE_TUNING"?(d=O(a,["validationDataset"]),c!==void 0&&d!=null&&M(c,["supervisedTuningSpec"],qs(d))):d==="PREFERENCE_TUNING"?(d=O(a,["validationDataset"]), c!==void 0&&d!=null&&M(c,["preferenceOptimizationSpec"],qs(d))):d==="DISTILLATION"&&(d=O(a,["validationDataset"]),c!==void 0&&d!=null&&M(c,["distillationSpec"],qs(d))),d=O(a,["tunedModelDisplayName"]),c!==void 0&&d!=null&&M(c,["tunedModelDisplayName"],d),d=O(a,["description"]),c!==void 0&&d!=null&&M(c,["description"],d),d=O(b,["config","method"]),d===void 0&&(d="SUPERVISED_FINE_TUNING"),d==="SUPERVISED_FINE_TUNING"?(d=O(a,["epochCount"]),c!==void 0&&d!=null&&M(c,["supervisedTuningSpec","hyperParameters", "epochCount"],d)):d==="PREFERENCE_TUNING"?(d=O(a,["epochCount"]),c!==void 0&&d!=null&&M(c,["preferenceOptimizationSpec","hyperParameters","epochCount"],d)):d==="DISTILLATION"&&(d=O(a,["epochCount"]),c!==void 0&&d!=null&&M(c,["distillationSpec","hyperParameters","epochCount"],d)),d=O(b,["config","method"]),d===void 0&&(d="SUPERVISED_FINE_TUNING"),d==="SUPERVISED_FINE_TUNING"?(d=O(a,["learningRateMultiplier"]),c!==void 0&&d!=null&&M(c,["supervisedTuningSpec","hyperParameters","learningRateMultiplier"], d)):d==="PREFERENCE_TUNING"?(d=O(a,["learningRateMultiplier"]),c!==void 0&&d!=null&&M(c,["preferenceOptimizationSpec","hyperParameters","learningRateMultiplier"],d)):d==="DISTILLATION"&&(d=O(a,["learningRateMultiplier"]),c!==void 0&&d!=null&&M(c,["distillationSpec","hyperParameters","learningRateMultiplier"],d)),d=O(b,["config","method"]),d===void 0&&(d="SUPERVISED_FINE_TUNING"),d==="SUPERVISED_FINE_TUNING"?(d=O(a,["exportLastCheckpointOnly"]),c!==void 0&&d!=null&&M(c,["supervisedTuningSpec","exportLastCheckpointOnly"], d)):d==="PREFERENCE_TUNING"?(d=O(a,["exportLastCheckpointOnly"]),c!==void 0&&d!=null&&M(c,["preferenceOptimizationSpec","exportLastCheckpointOnly"],d)):d==="DISTILLATION"&&(d=O(a,["exportLastCheckpointOnly"]),c!==void 0&&d!=null&&M(c,["distillationSpec","exportLastCheckpointOnly"],d)),d=O(b,["config","method"]),d===void 0&&(d="SUPERVISED_FINE_TUNING"),d==="SUPERVISED_FINE_TUNING"?(d=O(a,["adapterSize"]),c!==void 0&&d!=null&&M(c,["supervisedTuningSpec","hyperParameters","adapterSize"],d)):d==="PREFERENCE_TUNING"? (d=O(a,["adapterSize"]),c!==void 0&&d!=null&&M(c,["preferenceOptimizationSpec","hyperParameters","adapterSize"],d)):d==="DISTILLATION"&&(d=O(a,["adapterSize"]),c!==void 0&&d!=null&&M(c,["distillationSpec","hyperParameters","adapterSize"],d)),d=O(b,["config","method"]),d===void 0&&(d="SUPERVISED_FINE_TUNING"),d==="SUPERVISED_FINE_TUNING"?(d=O(a,["tuningMode"]),c!==void 0&&d!=null&&M(c,["supervisedTuningSpec","tuningMode"],d)):d==="DISTILLATION"&&(d=O(a,["tuningMode"]),c!==void 0&&d!=null&&M(c,["distillationSpec", "tuningMode"],d)),d=O(a,["customBaseModel"]),c!==void 0&&d!=null&&M(c,["customBaseModel"],d),d=O(b,["config","method"]),d===void 0&&(d="SUPERVISED_FINE_TUNING"),d==="SUPERVISED_FINE_TUNING"?(d=O(a,["batchSize"]),c!==void 0&&d!=null&&M(c,["supervisedTuningSpec","hyperParameters","batchSize"],d)):d==="DISTILLATION"&&(d=O(a,["batchSize"]),c!==void 0&&d!=null&&M(c,["distillationSpec","hyperParameters","batchSize"],d)),b=O(b,["config","method"]),b===void 0&&(b="SUPERVISED_FINE_TUNING"),b==="SUPERVISED_FINE_TUNING"? (b=O(a,["learningRate"]),c!==void 0&&b!=null&&M(c,["supervisedTuningSpec","hyperParameters","learningRate"],b)):b==="DISTILLATION"&&(b=O(a,["learningRate"]),c!==void 0&&b!=null&&M(c,["distillationSpec","hyperParameters","learningRate"],b)),b=O(a,["labels"]),c!==void 0&&b!=null&&M(c,["labels"],b),b=O(a,["beta"]),c!==void 0&&b!=null&&M(c,["preferenceOptimizationSpec","hyperParameters","beta"],b),b=O(a,["baseTeacherModel"]),c!==void 0&&b!=null&&M(c,["distillationSpec","baseTeacherModel"],b),b=O(a,["tunedTeacherModelSource"]), c!==void 0&&b!=null&&M(c,["distillationSpec","tunedTeacherModelSource"],b),b=O(a,["sftLossWeightMultiplier"]),c!==void 0&&b!=null&&M(c,["distillationSpec","hyperParameters","sftLossWeightMultiplier"],b),b=O(a,["outputUri"]),c!==void 0&&b!=null&&M(c,["outputUri"],b),b=O(a,["encryptionSpec"]),c!==void 0&&b!=null&&M(c,["encryptionSpec"],b));return c},ss=function(a){var b={};a=O(a,["name"]);a!=null&&M(b,["_url","name"],a);return b},ts=function(a){var b={};a=O(a,["name"]);a!=null&&M(b,["_url","name"], a);return b},us=function(a){var b={};a=O(a,["config"]);if(a!=null){var c=O(a,["pageSize"]);b!==void 0&&c!=null&&M(b,["_query","pageSize"],c);c=O(a,["pageToken"]);b!==void 0&&c!=null&&M(b,["_query","pageToken"],c);a=O(a,["filter"]);b!==void 0&&a!=null&&M(b,["_query","filter"],a)}return b},vs=function(a){var b={};a=O(a,["config"]);if(a!=null){var c=O(a,["pageSize"]);b!==void 0&&c!=null&&M(b,["_query","pageSize"],c);c=O(a,["pageToken"]);b!==void 0&&c!=null&&M(b,["_query","pageToken"],c);a=O(a,["filter"]); b!==void 0&&a!=null&&M(b,["_query","filter"],a)}return b},xs=function(a){var b={},c=O(a,["sdkHttpResponse"]);c!=null&&M(b,["sdkHttpResponse"],c);c=O(a,["nextPageToken"]);c!=null&&M(b,["nextPageToken"],c);a=O(a,["tunedModels"]);a!=null&&(Array.isArray(a)&&(a=a.map(function(d){return ws(d)})),M(b,["tuningJobs"],a));return b},zs=function(a){var b={},c=O(a,["sdkHttpResponse"]);c!=null&&M(b,["sdkHttpResponse"],c);c=O(a,["nextPageToken"]);c!=null&&M(b,["nextPageToken"],c);a=O(a,["tuningJobs"]);a!=null&& (Array.isArray(a)&&(a=a.map(function(d){return ys(d)})),M(b,["tuningJobs"],a));return b},os=function(a){var b={};if(O(a,["gcsUri"])!==void 0)throw Error("Pb");if(O(a,["vertexDatasetResource"])!==void 0)throw Error("Od");a=O(a,["examples"]);a!=null&&(Array.isArray(a)&&(a=a.map(function(c){return c})),M(b,["examples","examples"],a))},ws=function(a){var b={},c=O(a,["sdkHttpResponse"]);c!=null&&M(b,["sdkHttpResponse"],c);c=O(a,["name"]);c!=null&&M(b,["name"],c);c=O(a,["state"]);c!=null&&M(b,["state"], Co(c));c=O(a,["createTime"]);c!=null&&M(b,["createTime"],c);c=O(a,["tuningTask","startTime"]);c!=null&&M(b,["startTime"],c);c=O(a,["tuningTask","completeTime"]);c!=null&&M(b,["endTime"],c);c=O(a,["updateTime"]);c!=null&&M(b,["updateTime"],c);c=O(a,["description"]);c!=null&&M(b,["description"],c);c=O(a,["baseModel"]);c!=null&&M(b,["baseModel"],c);c=O(a,["_self"]);if(c!=null){a={};var d=O(c,["name"]);d!=null&&M(a,["model"],d);c=O(c,["name"]);c!=null&&M(a,["endpoint"],c);M(b,["tunedModel"],a)}return b}, ys=function(a){var b={},c=O(a,["sdkHttpResponse"]);c!=null&&M(b,["sdkHttpResponse"],c);c=O(a,["name"]);c!=null&&M(b,["name"],c);c=O(a,["state"]);c!=null&&M(b,["state"],Co(c));c=O(a,["createTime"]);c!=null&&M(b,["createTime"],c);c=O(a,["startTime"]);c!=null&&M(b,["startTime"],c);c=O(a,["endTime"]);c!=null&&M(b,["endTime"],c);c=O(a,["updateTime"]);c!=null&&M(b,["updateTime"],c);c=O(a,["error"]);c!=null&&M(b,["error"],c);c=O(a,["description"]);c!=null&&M(b,["description"],c);c=O(a,["baseModel"]);c!= null&&M(b,["baseModel"],c);c=O(a,["tunedModel"]);c!=null&&M(b,["tunedModel"],c);c=O(a,["preTunedModel"]);c!=null&&M(b,["preTunedModel"],c);c=O(a,["supervisedTuningSpec"]);c!=null&&M(b,["supervisedTuningSpec"],c);c=O(a,["preferenceOptimizationSpec"]);c!=null&&M(b,["preferenceOptimizationSpec"],c);c=O(a,["distillationSpec"]);c!=null&&M(b,["distillationSpec"],c);c=O(a,["tuningDataStats"]);c!=null&&M(b,["tuningDataStats"],c);c=O(a,["encryptionSpec"]);c!=null&&M(b,["encryptionSpec"],c);c=O(a,["partnerModelTuningSpec"]); c!=null&&M(b,["partnerModelTuningSpec"],c);c=O(a,["customBaseModel"]);c!=null&&M(b,["customBaseModel"],c);c=O(a,["evaluateDatasetRuns"]);c!=null&&(Array.isArray(c)&&(c=c.map(function(d){return d})),M(b,["evaluateDatasetRuns"],c));c=O(a,["experiment"]);c!=null&&M(b,["experiment"],c);c=O(a,["fullFineTuningSpec"]);c!=null&&M(b,["fullFineTuningSpec"],c);c=O(a,["labels"]);c!=null&&M(b,["labels"],c);c=O(a,["outputUri"]);c!=null&&M(b,["outputUri"],c);c=O(a,["pipelineJob"]);c!=null&&M(b,["pipelineJob"],c); c=O(a,["serviceAccount"]);c!=null&&M(b,["serviceAccount"],c);c=O(a,["tunedModelDisplayName"]);c!=null&&M(b,["tunedModelDisplayName"],c);c=O(a,["tuningJobState"]);c!=null&&M(b,["tuningJobState"],c);c=O(a,["veoTuningSpec"]);c!=null&&M(b,["veoTuningSpec"],c);c=O(a,["distillationSamplingSpec"]);c!=null&&M(b,["distillationSamplingSpec"],c);a=O(a,["tuningJobMetadata"]);a!=null&&M(b,["tuningJobMetadata"],a);return b},qs=function(a){var b={},c=O(a,["gcsUri"]);c!=null&&M(b,["validationDatasetUri"],c);a=O(a, ["vertexDatasetResource"]);a!=null&&M(b,["validationDatasetUri"],a);return b},Fs=function(a){return As(new Bs,Gm(a,1,_.dj()).map(function(b,c){b=Cs(new Ds,b);if(Gm(a,2,_.dj()).length>c){var d=Gm(a,2,3,!0);if(typeof c!=="number"||c<0||c>=d.length)throw Error();Es(b,3,d[c])}return b}))},Gs=function(a){var b=Cs(new Ds,a[0]);a.length===3&&Es(b,3,a[2]);return b},Hs=function(a){return _.fj(a,Ds,1).map(function(b){return _.ij(b,3)?[_.ij(b,1),200,_.ij(b,3)]:[_.ij(b,1),200]})},Is=function(a){var b=_.tb(), c=b.g,d=b.createElement("STYLE"),e=_.Sa("style",c);e&&d.setAttribute("nonce",e);d.type="text/css";b=b.getElementsByTagName("HEAD")[0];d.styleSheet?d.styleSheet.cssText=a:d.appendChild(c.createTextNode(a));b.appendChild(d);return d},mt,qt,nt,ot,Cq,rt,st,tt,ut,vt,wt,xt,yt,zt,At;_.k=Kl.prototype;_.k.equals=function(a){return a instanceof Kl&&(this==a?!0:this&&a?this.x==a.x&&this.y==a.y:!1)};_.k.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; _.k.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};_.k.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};_.k.translate=function(a,b){a instanceof Kl?(this.x+=a.x,this.y+=a.y):(this.x+=Number(a),typeof b==="number"&&(this.y+=b));return this};_.k.scale=function(a,b){this.x*=a;this.y*=typeof b==="number"?b:a;return this}; var Js=function(a){return new Kl(a.x,a.y)},Ks=["data:","http:","https:","mailto:","ftp:"],Ls=function(a){var b=1;a=a.split(":");for(var c=[];b>0&&a.length;)c.push(a.shift()),b--;a.length&&c.push(a.join(":"));return c},Ms=function(a,b,c){c=a.g.get(c);return(c==null?0:c.has(b))?c.get(b):a.l.has(b)?{Ca:1}:(c=a.o.get(b))?c:a.h&&[].concat(_.mc(a.h)).some(function(d){return b.indexOf(d)===0})?{Ca:1}:{Ca:0}},Ns=function(a,b,c){var d=Nl(b);c=c.createElement(d);b=b.attributes;for(var e=_.A(b),f=e.next();!f.done;f= e.next()){var g=f.value;f=g.name;g=g.value;var h=Ms(a.g,f,d),m;a:{if(m=h.conditions){m=_.A(m);for(var n=m.next();!n.done;n=m.next()){var q=_.A(n.value);n=q.next().value;q=q.next().value;var u=void 0;if((n=(u=b.getNamedItem(n))==null?void 0:u.value)&&!q.has(n)){m=!1;break a}}}m=!0}if(m)switch(h.Ca){case 1:Pl(c,f,g);break;case 2:throw Error();case 3:Pl(c,f,g.toLowerCase());break;case 4:Pl(c,f,g);break;case 5:Pl(c,f,g);break;case 6:Pl(c,f,g);break;case 7:a:if(h=void 0,m=g,_.Uc){try{h=new URL(m)}catch(p){h= "https:";break a}h=h.protocol}else b:{h=m;m=document.createElement("a");try{m.href=h}catch(p){h=void 0;break b}h=m.protocol;h=h===":"||h===""?"https:":h}g=h!==void 0&&Ks.indexOf(h.toLowerCase())!==-1?g:"about:invalid#zClosurez";Pl(c,f,g)}}return c},zm=function(a,b){var c=_.Dd;a=Ml(a,b);a=document.createTreeWalker(a,5,function(h){if(h.nodeType===3)h=1;else if(Ol(h))if(h=Nl(h),h===null)h=2;else{var m=c.g;h=h!=="FORM"&&(m.j.has(h)||m.g.has(h))?1:2}else h=2;return h});for(var d=a.nextNode(),e=b.createDocumentFragment(), f=e;d!==null;){var g=void 0;if(d.nodeType===3)g=document.createTextNode(d.data);else if(Ol(d))g=Ns(c,d,b);else throw Error("D");f.appendChild(g);if(d=a.firstChild())f=g;else for(;!(d=a.nextSibling())&&(d=a.parentNode());)f=f.parentNode}return e},Os=function(a,b,c,d){a=d||a;return(b=b&&b!="*"?String(b).toUpperCase():"")||c?a.querySelectorAll(b+(c?"."+c:"")):a.getElementsByTagName("*")},Ps=function(a,b){var c=b||document;c.getElementsByClassName?a=c.getElementsByClassName(a)[0]:(c=document,a=a?(b|| c).querySelector(a?"."+a:""):Os(c,"*",a,b)[0]||null);return a||null},Qs=function(a){return a.scrollingElement?a.scrollingElement:_.id||a.compatMode!="CSS1Compat"?a.body||a.documentElement:a.documentElement},Rs=function(a){var b=Qs(a);a=a.defaultView;return new Kl((a==null?void 0:a.pageXOffset)||b.scrollLeft,(a==null?void 0:a.pageYOffset)||b.scrollTop)},Ss=function(a){var b={};a=(a.g&&(a.g?a.g.readyState:0)>=2?a.g.getAllResponseHeaders()||"":"").split("\r\n");for(var c=0;c/g;xt=/"/g;yt=/'/g;zt=/\x00/g;At=/[\x00&<>"']/; _.Gg=function(a){this.g=a};_.Gg.prototype.toString=function(){return this.g}; var Bt=function(a){return a.replace(/\xa0|[ \t]+/g," ")},Ct=function(a){return a.replace(/[\s\xa0]+$/,"")},Dt=function(a){At.test(a)&&(a.indexOf("&")!=-1&&(a=a.replace(ut,"&")),a.indexOf("<")!=-1&&(a=a.replace(vt,"<")),a.indexOf(">")!=-1&&(a=a.replace(wt,">")),a.indexOf('"')!=-1&&(a=a.replace(xt,""")),a.indexOf("'")!=-1&&(a=a.replace(yt,"'")),a.indexOf("\x00")!=-1&&(a=a.replace(zt,"�")));return a},Et=function(a){return a.replace(/&([^;]+);/g,function(b,c){switch(c){case "amp":return"&"; case "lt":return"<";case "gt":return">";case "quot":return'"';default:return c.charAt(0)!="#"||(c=Number("0"+c.slice(1)),isNaN(c))?b:String.fromCharCode(c)}})},Ft=/&([^;\s<&]+);?/g,Gt=function(a){var b={"&":"&","<":"<",">":">",""":'"'};var c=_.r.document.createElement("div");return a.replace(Ft,function(d,e){var f=b[d];if(f)return f;e.charAt(0)=="#"&&(e=Number("0"+e.slice(1)),isNaN(e)||(f=String.fromCharCode(e)));f||(f=_.xl(d+" "),c.nodeType===1&&$l(c),c.innerHTML=_.qj(f),f=c.firstChild.nodeValue.slice(0, -1));return b[d]=f})},Ht=function(a){return a.indexOf("&")!=-1?"document"in _.r?Gt(a):Et(a):a},It=function(a,b){try{return _.dd(a[b]),!0}catch(c){}return!1},Kt=function(a){var b=Jt;return Object.prototype.hasOwnProperty.call(b,"7.0")?b["7.0"]:b["7.0"]=a("7.0")},Jt={},Lt=function(){return Kt(function(){return Zl(_.wd,"7.0")>=0})},gm=/^[a-z][a-z\d-]*$/i,jm="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),km="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "), hm=["action","formaction","href"],Mt=function(){this.g=new Map};Mt.prototype.format=function(a){var b=this,c=cm("_safevalues_format_marker_:").toString();a=cm(a).toString().replace(new RegExp("\\{"+c+"[\\w&#;]+\\}","g"),function(d){var e;if(e=b.g.get(d)){d="";switch(e.type){case "html":d=e.dh;break;case "startTag":d="<"+e.tagName+e.attributes+">";break;case "endTag":d=""}e=d}else e=d;return e});return _.xl(a)};Mt.prototype.text=function(a){return Nt(this,{type:"html",dh:cm(a).toString()})}; var Nt=function(a,b){var c="{_safevalues_format_marker_:"+a.g.size+"_"+Math.random().toString(36).slice(2)+"}";a.g.set(cm(c).toString(),b);return c},Un=function(a){return _.Gd(document,a)},Ot=function(a,b){return(b||document).getElementsByTagName(String(a))},Pt=function(a,b,c){return _.Ld(document,arguments)},Qt=function(a,b){b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling)},Rt=function(a){return _.Ba(a)&&a.nodeType==1},St=function(a){return a.contentDocument||a.contentWindow.document},Tt= function(a){try{return a.contentWindow||(a.contentDocument?_.ub(a.contentDocument):null)}catch(b){}return null},Ut={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},Vt={IMG:" ",BR:"\n"},Wt=function(a){a=a.tabIndex;return typeof a==="number"&&a>=0&&a<32768},Xt=function(a,b){b?a.tabIndex=0:(a.tabIndex=-1,a.removeAttribute("tabIndex"))},Yt=function(a,b,c){if(!(a.nodeName in Ut))if(a.nodeType==3)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in Vt)b.push(Vt[a.nodeName]); else for(a=a.firstChild;a;)Yt(a,b,c),a=a.nextSibling},Zt=function(a){var b=[];Yt(a,b,!0);a=b.join("");a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");a=a.replace(/ +/g," ");a!=" "&&(a=a.replace(/^\s*/,""));return a},$t=function(a){var b=[];Yt(a,b,!1);return b.join("")},au=function(a,b,c){this.promise=a;this.resolve=b;this.reject=c},bu=function(){var a,b,c=new _.Ae(function(d,e){a=d;b=e});return new au(c,a,b)},cu=function(a){if(a.Hb&&typeof a.Hb=="function")return a.Hb();if(typeof Map!== "undefined"&&a instanceof Map||typeof Set!=="undefined"&&a instanceof Set)return Array.from(a.values());if(typeof a==="string")return a.split("");if(_.sa(a)){for(var b=[],c=a.length,d=0;d0?String(a[0]):b};var iu=function(a,b,c){a.remove(b);c.length>0&&(a.j=null,a.g.set(gu(a,b),_.za(c)),a.h+=c.length)}; um.prototype.toString=function(){if(this.j)return this.j;if(!this.g)return"";for(var a=[],b=Array.from(this.g.keys()),c=0;c>4&15).toString(16)+(a&15).toString(16)},qu=function(a,b,c){return typeof a==="string"?(a=encodeURI(a).replace(b,pu),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}; mm.prototype.toString=function(){var a=[],b=this.l;b&&a.push(qu(b,ku,!0),":");var c=this.h;if(c||b=="file")a.push("//"),(b=this.B)&&a.push(qu(b,ku,!0),"@"),a.push(_.Pb(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.C,c!=null&&a.push(":",String(c));if(c=this.j)this.h&&c.charAt(0)!="/"&&a.push("/"),a.push(qu(c,c.charAt(0)=="/"?lu:mu,!0));(c=this.g.toString())&&a.push("?",c);(c=this.A)&&a.push("#",qu(c,nu));return a.join("")}; mm.prototype.resolve=function(a){var b=new mm(this),c=!!a.l;c?nm(b,a.l):c=!!a.B;c?b.B=a.B:c=!!a.h;c?om(b,a.h):c=a.C!=null;var d=a.j;if(c)pm(b,a.C);else if(c=!!a.j){if(d.charAt(0)!="/")if(this.h&&!this.j)d="/"+d;else{var e=b.j.lastIndexOf("/");e!=-1&&(d=b.j.slice(0,e+1)+d)}e=d;if(e==".."||e==".")d="";else if(e.indexOf("./")!=-1||e.indexOf("/.")!=-1){d=e.lastIndexOf("/",0)==0;e=e.split("/");for(var f=[],g=0;g1||f.length== 1&&f[0]!="")&&f.pop(),d&&g==e.length&&f.push("")):(f.push(h),d=!0)}d=f.join("/")}else d=e}c?qm(b,d):c=a.g.toString()!=="";c?rm(b,sm(a.g)):c=!!a.A;c&&(b.A=a.A);return b}; var nm=function(a,b,c){a.l=c?tm(b,!0):b;a.l&&(a.l=a.l.replace(/:$/,""));return a},om=function(a,b,c){a.h=c?tm(b,!0):b;return a},pm=function(a,b){if(b){b=Number(b);if(isNaN(b)||b<0)throw Error("Q`"+b);a.C=b}else a.C=null},qm=function(a,b,c){a.j=c?tm(b,!0):b;return a},rm=function(a,b,c){b instanceof um?(a.g=b,ju(a.g,a.o)):(c||(b=qu(b,ou)),a.g=new um(b,a.o))},ru=function(a){return a instanceof mm?new mm(a):new mm(a)},su=function(a){var b=du(a);if(typeof b=="undefined")throw Error("S");var c=new um(null); a=cu(a);for(var d=0;d=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1}; _.k.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};_.k.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};_.k.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this}; _.k.translate=function(a,b){a instanceof Kl?(this.left+=a.x,this.right+=a.x,this.top+=a.y,this.bottom+=a.y):(this.left+=a,this.right+=a,typeof b==="number"&&(this.top+=b,this.bottom+=b));return this};_.k.scale=function(a,b){b=typeof b==="number"?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};_.k=Km.prototype; _.k.contains=function(a){return a instanceof Kl?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height};_.k.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; _.k.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};_.k.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};_.k.translate=function(a,b){a instanceof Kl?(this.left+=a.x,this.top+=a.y):(this.left+=a,typeof b==="number"&&(this.top+=b));return this}; _.k.scale=function(a,b){b=typeof b==="number"?b:a;this.left*=a;this.width*=a;this.top*=b;this.height*=b;return this}; var yu=function(a,b){var c=_.Fd(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""},zu=function(a,b){return yu(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]},Au=function(a){typeof a=="number"&&(a+="px");return a},Bu=function(a,b){if(b instanceof Kl){var c=b.x;b=b.y}else c=b,b=void 0;a.style.left=Au(c);a.style.top=Au(b)},Cu=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0, top:0,right:0,bottom:0}}},Du=function(a){var b=_.Fd(a),c=zu(a,"position"),d=c=="fixed"||c=="absolute";for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(a.nodeType==11&&a.host&&(a=a.host),c=zu(a,"position"),d=d&&c=="static"&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||c=="fixed"||c=="absolute"||c=="relative"))return a;return null},Eu=function(a){var b=_.Fd(a),c=new Kl(0,0);if(a==(b?_.Fd(b):document).documentElement)return c;a=Cu(a);b=_.tb(b);b=Rs(b.g); c.x=a.left+b.x;c.y=a.top+b.y;return c},Fu=function(a){for(var b=new Jm(0,Infinity,Infinity,0),c=_.tb(a),d=c.g.body,e=c.g.documentElement,f=Qs(c.g);a=Du(a);)if((!_.id||a.clientHeight!=0||a!=d)&&a!=d&&a!=e&&zu(a,"overflow")!="visible"){var g=Eu(a),h=new Kl(a.clientLeft,a.clientTop);g.x+=h.x;g.y+=h.y;b.top=Math.max(b.top,g.y);b.right=Math.min(b.right,g.x+a.clientWidth);b.bottom=Math.min(b.bottom,g.y+a.clientHeight);b.left=Math.max(b.left,g.x)}d=f.scrollLeft;f=f.scrollTop;b.left=Math.max(b.left,d);b.top= Math.max(b.top,f);c=_.qb(c.g.defaultView||window);b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,f+c.height);return b.top>=0&&b.left>=0&&b.bottom>b.top&&b.right>b.left?b:null},Gu=function(a,b){var c=new Kl(0,0),d=_.ub(_.Fd(a));if(!It(d,"parent"))return c;do{if(d==b)var e=Eu(a);else e=Cu(a),e=new Kl(e.left,e.top);c.x+=e.x;c.y+=e.y}while(d&&d!=b&&d!=d.parent&&(a=d.frameElement)&&(d=d.parent));return c},Iu=function(a){var b=Hu;if(zu(a,"display")!="none")return b(a);var c=a.style,d=c.display, e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=f;c.visibility=e;return a},Hu=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=_.id&&!b&&!c;return(b===void 0||d)&&a.getBoundingClientRect?(a=Cu(a),new _.Ea(a.right-a.left,a.bottom-a.top)):new _.Ea(b,c)},Ju=function(a,b){a.style.display=b?"":"none"},Ku=function(a,b){b=_.tb(b);var c=Os(b.g,"HEAD")[0];if(!c){var d=Os(b.g,"BODY")[0];c=b.W("HEAD");d.parentNode.insertBefore(c,d)}d= b.W("STYLE");var e=_.Sa("style",document);e&&d.setAttribute("nonce",e);a=am(a);_.r.trustedTypes?_.Qd(d,a):d.innerHTML=a;b.appendChild(c,d)},Lu=function(a){return"rtl"==zu(a,"direction")},Mu=function(a){return new _.Ea(a.offsetWidth,a.offsetHeight)},Nu=function(a,b,c){a=a.style;_.hd?a.MozBoxSizing=c:_.id?a.WebkitBoxSizing=c:a.boxSizing=c;a.width=Math.max(b.width,0)+"px";a.height=Math.max(b.height,0)+"px"},Ou=function(a,b){Nu(a,b,"content-box")},Pu=function(a){var b=yu(a,"paddingLeft"),c=yu(a,"paddingRight"), d=yu(a,"paddingTop");a=yu(a,"paddingBottom");return new Jm(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))},Qu=function(a){var b=yu(a,"borderLeftWidth"),c=yu(a,"borderRightWidth"),d=yu(a,"borderTopWidth");a=yu(a,"borderBottomWidth");return new Jm(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))},Ru=function(a){if(a!=null)switch(a.We){case 1:return 1;case -1:return-1;case 0:return 0}return null},Su=function(a){return a instanceof _.Il?dt(a)?!0:!!a.ga():a instanceof _.Gf?!!a.ga():!!a}, Tu={},Uu={},Vu=//g,"]]\\>");return b?a.replace(/{/g," \\{").replace(/}/g," \\}").replace(/\/\*/g,"/ *").replace(/\\$/,"\\ "):a},Xu=function(a){a=String(a);for(var b=function(d,e,f){for(var g=Math.min(e.length-f,d.length),h=0;h":">","`":"`","\u0085":"…","\u00a0":" ","\u2028":"
","\u2029":"
"},dv=function(a){return cv[a]},ev={"\x00":"\\x00","\b":"\\x08","\t":"\\t","\n":"\\n","\v":"\\x0b","\f":"\\f","\r":"\\r",'"':"\\x22",$:"\\x24","&":"\\x26","'":"\\x27","(":"\\x28",")":"\\x29","*":"\\x2a","+":"\\x2b",",":"\\x2c","-":"\\x2d",".":"\\x2e","/":"\\/",":":"\\x3a","<":"\\x3c","=":"\\x3d",">":"\\x3e","?":"\\x3f","[":"\\x5b","\\":"\\\\","]":"\\x5d","^":"\\x5e","{":"\\x7b","|":"\\x7c", "}":"\\x7d","\u0085":"\\x85","\u2028":"\\u2028","\u2029":"\\u2029"},fv=function(a){return ev[a]},gv={"\x00":"\\0 ","\b":"\\8 ","\t":"\\9 ","\n":"\\a ","\v":"\\b ","\f":"\\c ","\r":"\\d ",'"':"\\22 ","&":"\\26 ","'":"\\27 ","(":"\\28 ",")":"\\29 ","*":"\\2a ","/":"\\2f ",":":"\\3a ",";":"\\3b ","<":"\\3c ","=":"\\3d ",">":"\\3e ","@":"\\40 ","\\":"\\5c ","{":"\\7b ","}":"\\7d ","\u0085":"\\85 ","\u00a0":"\\a0 ","\u2028":"\\2028 ","\u2029":"\\2029 "},hv=function(a){return gv[a]},iv={"\x00":"%00","\u0001":"%01", "\u0002":"%02","\u0003":"%03","\u0004":"%04","\u0005":"%05","\u0006":"%06","\u0007":"%07","\b":"%08","\t":"%09","\n":"%0A","\v":"%0B","\f":"%0C","\r":"%0D","\u000e":"%0E","\u000f":"%0F","\u0010":"%10","\u0011":"%11","\u0012":"%12","\u0013":"%13","\u0014":"%14","\u0015":"%15","\u0016":"%16","\u0017":"%17","\u0018":"%18","\u0019":"%19","\u001a":"%1A","\u001b":"%1B","\u001c":"%1C","\u001d":"%1D","\u001e":"%1E","\u001f":"%1F"," ":"%20",'"':"%22","'":"%27","(":"%28",")":"%29","<":"%3C",">":"%3E","\\":"%5C", "{":"%7B","}":"%7D","\u007f":"%7F","\u0085":"%C2%85","\u00a0":"%C2%A0","\u2028":"%E2%80%A8","\u2029":"%E2%80%A9","\uff01":"%EF%BC%81","\uff03":"%EF%BC%83","\uff04":"%EF%BC%84","\uff06":"%EF%BC%86","\uff07":"%EF%BC%87","\uff08":"%EF%BC%88","\uff09":"%EF%BC%89","\uff0a":"%EF%BC%8A","\uff0b":"%EF%BC%8B","\uff0c":"%EF%BC%8C","\uff0f":"%EF%BC%8F","\uff1a":"%EF%BC%9A","\uff1b":"%EF%BC%9B","\uff1d":"%EF%BC%9D","\uff1f":"%EF%BC%9F","\uff20":"%EF%BC%A0","\uff3b":"%EF%BC%BB","\uff3d":"%EF%BC%BD"},jv=function(a){return iv[a]}, kv=/[\x00\x22\x26\x27\x3c\x3e]/g,lv=function(a){return Yu(a,_.Bl)?a:a instanceof _.Vc?(0,_.El)(_.qj(a).toString()):(0,_.El)(String(String(a)).replace(kv,dv),Ru(a))},mv=/[\x00\x22\x27\x3c\x3e]/g,nv=function(a){return Lm(String(a),function(){return""}).replace(Vu,"<")},T=function(a){Yu(a,_.Bl)?(a=nv(a.ga()),a=String(a).replace(mv,dv)):a=String(a).replace(kv,dv);return a},ov=/[\x00\x09-\x0d \x22\x26\x27\x2d\/\x3c-\x3e`\x85\xa0\u2028\u2029]/g,pv=/[\x00\x09-\x0d \x22\x27\x2d\/\x3c-\x3e`\x85\xa0\u2028\u2029]/g, qv=/[\x00\x08-\x0d\x22\x26\x27\/\x3c-\x3e\x5b-\x5d\x7b\x7d\x85\u2028\u2029]/g,rv=function(a){if(a==null)return" null ";if(Yu(a,tu))return a.ga();if(a instanceof _.Ta)return _.Va(a).toString();switch(typeof a){case "boolean":case "number":return" "+a+" ";default:return"'"+String(String(a)).replace(qv,fv)+"'"}},sv=/[\x00\x08-\x0d\x22\x26-\x2a\/\x3a-\x3e@\\\x7b\x7d\x85\xa0\u2028\u2029]/g,tv=/[\x00- \x22\x27-\x29\x3c\x3e\\\x7b\x7d\x7f\x85\xa0\u2028\u2029\uff01\uff03\uff04\uff06-\uff0c\uff0f\uff1a\uff1b\uff1d\uff1f\uff20\uff3b\uff3d]/g, uv=function(a){return String(a).replace(tv,jv)},vv=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,wv=function(a){Yu(a,uu)||Yu(a,vu)?a=String(a).replace(tv,jv):_.Hg(a)?a=uv(_.Ig(a)):a instanceof _.Pa?a=uv(_.Ra(a).toString()):(a=String(a),a=vv.test(a)?a.replace(tv,jv):"about:invalid#zSoyz");return a},xv=/^[^&:\/?#]*(?:[\/?#]|$)|^https?:|^filesystem:https?:|^ftp:|^data:image\/[a-z0-9+-]+;base64,[a-z0-9+\/]+=*$|^blob:/i,yv=function(a){Yu(a,uu)||Yu(a,vu)?a=String(a).replace(tv,jv):_.Hg(a)? a=uv(_.Ig(a)):a instanceof _.Pa?a=uv(_.Ra(a).toString()):(a=String(a),a=xv.test(a)?a.replace(tv,jv):"about:invalid#zSoyz");return a},$u=/^(?!on|src|(?:action|archive|background|cite|classid|codebase|content|data|dsync|href|http-equiv|longdesc|style|usemap)\s*$)(?:[a-z0-9_$:-]*)$/i,zv=/^[a-zA-Z0-9+\/_-]+={0,2}$/,Av=function(a){a=String(a);return zv.test(a)?a:"zSoyz"},Bv=function(a){this.L=_.E(a)};_.z(Bv,_.G);var Rm=function(a){var b=new Bv;return Rl(b,3,a,_.Mj)};var Cv=function(a){this.L=_.E(a)};_.z(Cv,_.G);Cv.prototype.Oa=function(){return _.ij(this,2)};Cv.prototype.qb=function(a){return Es(this,2,a)};Cv.prototype.ra=function(){return _.ij(this,3)};Cv.prototype.wa=function(a){return Es(this,3,a)};var Dv=function(a){this.L=_.E(a)};_.z(Dv,_.G);var Ev=function(a){this.L=_.E(a)};_.z(Ev,_.G);var Fv=_.Xj(Ev);var Gv=function(a){return function(){return a}},Hv=function(a,b){for(var c=0;c="a"?d.charCodeAt(0)-87:Number(d);d=b.charAt(c+1)=="+"?a>>>d:a<>6|192:((g&64512)==55296&&f+1>18|240,d[e++]=g>>12&63|128):d[e++]=g>>12|224,d[e++]=g>>6&63|128),d[e++]=g&63|128)}a=c;for(e=0;e>=4,yw[Bw]=ww[Bw==19?Aw&3|8:Aw]);xw=yw.join(""); var Cw=function(a,b,c){this.g=a=a===void 0?xw:a;this.pd=b===void 0?"":b;this.qd=c===void 0?"":c},Gw=function(a){var b=Dw(a,7);Ew(a,b);Fw(b,7)},Hw=function(a,b){var c=b.Kb===void 0?0:b.Kb;var d=b.yh===void 0?0:b.yh;var e=b.Vh===void 0?0:b.Vh;var f=b.xh===void 0?0:b.xh;b=Dw(a,8);Ew(a,b);a=new Ys;c=_.tk(a,1,c);d=_.tk(c,3,d);e=_.tk(d,2,e);e=_.tk(e,4,f);f=at(b);_.gj(f,6,e);Math.random()>=.005||(b=_.Wk(Us(8),_.hk(b)),pw.log(b))},Dw=function(a,b){var c=new _.wl;c=_.ek(c,50,Qv);var d=new $s;b=_.vk(d,1,b); b=_.ek(b,2,Yv);a=_.ek(b,3,a.g);return _.gj(c,112,a)},Fw=function(a,b){a=_.Wk(Us(b),_.hk(a));pw.log(a)},Ew=function(a,b){b.qb(a.pd);b.wa(a.qd)};var Iw=function(a){for(var b={},c=0;c=0?a.substring(0,b):a;return a=="zh"?"zh-CN":a},Rw=function(a){var b=[],c;for(c in a)if(a[c]!==Object.prototype[c]){var d=_.Pb(c);if(_.Cc(a[c])=="array")for(var e=0;edocument.domain='"+document.domain+"';parent['"+c+"']();\x3c/script>\"))"}else b&&b()},Sw,Uw=function(){var a={};try{for(var b in Object.prototype){var c= Object.prototype[b];delete Object.prototype[b];a[b]=c}}catch(d){return{}}return a},Vw=function(a){for(var b in a)Object.prototype[b]=a[b]},Ww=function(a){for(var b in a)if(a[b]!==Object.prototype[b])return!1;return!0},Xw=function(a,b){return a!="auto"&&a!="zh-CN"&&a==b},Yw=function(){var a=window.location.hash.match(/google\.translate\.element\.sp=([^&]+)/);return a&&a[1]?a[1]:null};var dn=null,Zw=null,$w=function(){};$w.prototype.attach=function(a,b,c){for(var d in c)c[d]!==Object.prototype[d]&&(b[d]=typeof c[d]==="function"?c[d]:_.Hc(fn,a,Number(c[d])))};var bx=function(){dn&&ax();dn=[];Zw=_.pb(window,"pagehide",function(){ax()})},ax=function(){Zw&&(_.ie(Zw),Zw=null);dn&&dn.length&&en(dn.join(""));dn=null},cx=new $w;var dx=function(a){this.L=_.E(a)};_.z(dx,_.G);var hn=_.Oi(dx);var gn;var ex=function(a){this.url=a;this.timeout=-1;this.j=this.h="callback";this.g=this.ac=null};ex.prototype.fetch=function(a){var b=this;a=a===void 0?{}:a;this.g=bu();var c=new mm(this.url),d=new Map;this.j&&d.set(this.j,this.h);c.g.extend(su(a),d);fx(this).then(function(){gx(b,c.toString())}).then(function(){return b.g.promise}).then(function(){hx(b)},function(){hx(b)});this.timeout>0&&(this.l=setTimeout(function(){b.g.reject(Error("Ba"))},this.timeout));return this.g.promise}; var gx=function(a,b){var c=new MessageChannel;a.ac.contentWindow.postMessage({url:b,callbackName:a.h},"*",[c.port2]);c.port1.onmessage=function(d){var e={};a.l!==void 0&&(clearTimeout(a.l),a.l=void 0);d.data===void 0&&a.g.reject(Error("Ca"));typeof d.data!=="string"&&a.g.reject(Error("Da"));try{e=JSON.parse(d.data)}catch(f){a.g.reject(Error("Ea`"+f.message))}a.g.resolve(e)}},fx=function(a){var b=bu(),c=_.Jd(document,"IFRAME");if(!c.sandbox)throw Error("Fa");c.sandbox.value="allow-scripts";c.style.display= "none";a.ac=c;a=kn();a=fm([_.xl(""),lm(dm(a))]);c.srcdoc=_.qj(a);a=Ql("data:text/html;charset=UTF-8;base64,"+btoa(_.qj(a).toString()));c.src=_.Ra(a).toString();c.addEventListener("load",function(){return b.resolve(c)},!1);c.addEventListener("error",function(d){b.reject(d instanceof Error?d:Error(String(d)))},!1);document.documentElement.appendChild(c);return b.promise},hx=function(a){a.ac!==null&&(document.documentElement.removeChild(a.ac),a.ac=null)};var ix=function(a,b){_.l.call(this);this.g=new mm(a);if(b)for(var c in b)b[c]!==Object.prototype[c]&&this.g.g.set(c,b[c])};_.z(ix,_.l);ix.prototype.nb=function(){return!0};ix.prototype.mb=function(){return this.nb()};ix.prototype.send=function(){return _.aj(null)};ix.prototype.cancel=function(){};var jx=function(a,b,c){ix.call(this,a,b);a=this.h=new ex(this.g);a.h="callback";a.j=c===void 0?"callback":c};_.z(jx,ix);jx.prototype.nb=function(){return!0};jx.prototype.send=function(a){return this.h.fetch(a)}; jx.prototype.cancel=function(a){a.cancel()};var kx=function(a,b){ix.call(this,a,b);this.h={};this.j=0};_.z(kx,ix);kx.prototype.nb=function(){return!0}; kx.prototype.send=function(a){var b=this,c=Uw(),d=++this.j,e={},f={};"q"in a&&(f.q=a.q,delete a.q);e.oa=new _.dg;this.g.h.endsWith(".corp.google.com")&&(e.oa.C=!0);var g=new _.Ae(function(h,m){_.pb(e.oa,"complete",function(){if(!e.yg){if(_.lg(e.oa)){var n=_.ng(e.oa);lx(b,d);return h(n)}b.Ak();n=_.ng(e.oa);lx(b,d);return m(n)}});_.pb(e.oa,"timeout",function(){if(!e.yg)return b.Ck(),lx(b,d),m()})});e.oa.send(this.g.toString()+"&"+Rw(a),"POST",Rw(f),{"Content-Type":"application/x-www-form-urlencoded"}); this.h[d]=e;Vw(c);return g};kx.prototype.cancel=function(a){var b=this.h[a];b&&(b.yg=!0,lx(this,a))};var lx=function(a,b){var c=a.h[b];c&&(c.oa&&(c.oa.dispose(),c.oa=null),delete a.h[b])};kx.prototype.N=function(){ix.prototype.N.call(this);for(var a in this.h)this.cancel(a)};cx.attach(17170,kx.prototype,{Ck:1,Ak:2});var mx=function(a,b,c){ix.call(this,a,c);this.j=b.proxyIsSupported;this.l=function(d,e,f){return _.aj(b.proxySend(d,e,f))};this.h=b.proxyCancel};_.z(mx,ix);mx.prototype.nb=function(){return this.j()}; mx.prototype.send=function(a,b){return this.l(this.g.toString(),a,b)};mx.prototype.cancel=function(a){this.h(a)};var nx=function(a,b){_.l.call(this);this.h=a;this.g=b?b:null};_.z(nx,_.l);nx.prototype.N=function(){_.l.prototype.N.call(this)};var px=function(a,b,c,d){_.l.call(this);var e;b?e={client:b}:e={anno:3,client:Yv,format:"html",v:"1.0"};c&&(e.sp=c);e.key=a;Vs&&(e.logld="v"+Vs);this.g=null;this.h={rh:300};a=this.o=new nx(e,d);b=$v+cw;this.l=a.g?new mx(b,a.g,{client:Yv}):new jx(b,{client:Yv});a=this.o;if(a.g){if(!a.g)throw Error("Ga");a=[{Da:new mx($v+Zv+"/translate_a/t",a.g,a.h),xf:1900,sh:4294967295,qh:-1,Kh:0,Xe:!1}]}else a=[{Da:new kx($v+Zv+"/translate_a/t",a.h),xf:30720,sh:4294967295,qh:-1,Kh:0,Xe:!1}];this.A=new ox(a);this.j= !1;for(b=0;b=a.h.length)a.g(null);else{var b=a.h[a.j++];b.Mk?Ow(new Nw((0,_.x)(b.Da.mb,b.Da),(0,_.x)(function(c){c?this.g(b):tx(this)},a),b.Mk)):b.Da.mb()?a.g(b):tx(a)}};var ux=Iw("A ABBR ACRONYM B BASEFONT BDO BIG CITE DFN EM FONT I INPUT NOBR LABEL Q RT S SMALL SPAN STRIKE STRONG SUB SUP TEXTAREA TT U VAR".split(" ")),vx=Iw("APPLET AREA BASE FRAME FRAMESET HR LINK META NOFRAMES NOSCRIPT INPUT TEXTAREA TITLE".split(" ")),wx=Iw("BR CODE IMG KBD MAP OBJECT PARAM RP SCRIPT STYLE WBR svg".split(" ")),xx=Iw(["submit","button"]);mn.prototype.next=function(){return yx};var yx={done:!0,value:void 0};mn.prototype.o=function(){return this};var Ax=function(a,b,c,d,e){this.h=!!b;this.node=null;this.g=0;this.j=!1;this.l=!c;a&&zx(this,a,d);this.depth=e!=void 0?e:this.g||0;this.h&&(this.depth*=-1)};_.C(Ax,mn);var zx=function(a,b,c,d){if(a.node=b)a.g=typeof c==="number"?c:a.node.nodeType!=1?0:a.h?-1:1;typeof d==="number"&&(a.depth=d)},Bx=function(a){var b=a.h?-1:1;a.g==b&&(a.g=b*-1,a.depth+=a.g*(a.h?-1:1))}; Ax.prototype.next=function(){if(this.j){if(!this.node||this.l&&this.depth==0)return yx;var a=this.node;var b=this.h?-1:1;if(this.g==b){var c=this.h?a.lastChild:a.firstChild;c?zx(this,c):zx(this,a,b*-1)}else(c=this.h?a.previousSibling:a.nextSibling)?zx(this,c):zx(this,a.parentNode,b*-1);this.depth+=this.g*(this.h?-1:1)}else this.j=!0;return(a=this.node)?{value:a,done:!1}:yx};Ax.prototype.equals=function(a){return a.node==this.node&&(!this.node||a.g==this.g)}; Ax.prototype.splice=function(a){var b=this.node,c=this.h?1:-1;this.g==c&&(this.g=c*-1,this.depth+=this.g*(this.h?-1:1));this.h=!this.h;Ax.prototype.next.call(this);this.h=!this.h;c=_.sa(arguments[0])?arguments[0]:arguments;for(var d=c.length-1;d>=0;d--)Qt(c[d],b);_.Od(b)};var Dx=function(a,b){this.l=!1;this.j=_.fd?[]:null;this.h=[];this.done=!1;for(this.g=new Ax(a,!1,b,a.nodeType===3?0:1,1);a=a.parentNode;)Cx(this,a,!0);this.h.push(!1);this.h.reverse();for(a=1;a0&&this.g.g===-1&&this.j.length--;this.g.g===-1&&this.h.length--;if(this.j&&this.j.length>0&&this.g.g!==1&&!this.g.node.nextSibling)zx(this.g,this.j[this.j.length-1],-1,this.g.depth-1);else{var a=this.g.next();this.l=!0;if(a.done){this.done=!0;return}this.j&&this.g.g===1&&this.j.push(this.g.node)}this.g.g===1&&this.l&&Cx(this,this.g.node)}catch(b){this.zk(b),this.done=!0}};cx.attach(52754,Dx.prototype,{zk:1});var Fx=function(){return"[msg_undefined]"},U={}; (function(){var a=function(b){return function(){return b}};U={mg:a(0),bi:a(1),Zf:a(2),wm:a(3),Bi:a(4),bg:a(5),ri:a(45),ti:a(6),wi:a(7),He:a(8),Ci:a(9),Tm:a(10),Hi:a(11),xi:a(12),Mm:a(13),zi:a(14),Lm:a(15),yi:a(16),Wm:a(17),Di:a(18),wl:a(19),um:a(20),di:a(21),Om:a(22),Fm:a(23),Em:a(24),Cm:a(25),Um:a(26),Sm:a(27),Dm:a(28),ui:a(29),Ei:a(30),vl:a(32),rl:a(33),Ym:a(34),Ll:a(35),Fl:a(36),Kl:a(37),Ai:a(38),gm:a(39),ul:a(40),vm:a(41),fg:a(46),ym:a(47),Vl:a(48),Ul:a(49),Tl:a(50),Vm:a(51)}})();U.io=function(){return _.D[0]}; U.qj=function(){return _.D[1]};U.In=function(){return _.D[2]};U.Tn=function(){return _.D[3]};U.jo=function(){return _.D[4]};U.Mn=function(){return _.D[5]};U.On=function(){return _.D[45]};U.Pn=function(){return _.D[6]};U.Un=function(){return _.D[7]};U.xj=function(){return _.D[8]};U.oo=function(){return _.D[9]};U.mo=function(){return _.D[10]};U.vo=function(){return _.D[11]};U.Vn=function(){return _.D[12]};U.eo=function(){return _.D[13]};U.fo=function(){return _.D[14]};U.co=function(){return _.D[15]}; U.Wn=function(){return _.D[16]};U.ro=function(){return _.D[17]};U.qo=function(){return _.D[18]};U.Gn=function(){return _.D[19]};U.Sn=function(){return _.D[20]};U.uj=function(){return _.D[41]};U.Ln=function(){return _.D[21]};U.wj=function(){return _.D[22]};U.ao=function(){return _.D[23]};U.Zn=function(){return _.D[24]};U.Xn=function(){return _.D[25]};U.no=function(){return _.D[26]};U.ko=function(){return _.D[27]};U.Yn=function(){return _.D[28]};U.Rn=function(){return _.D[29]};U.so=function(){return _.D[30]}; U.Qn=function(){return _.D[39]};U.Fn=function(){return _.D[32]};U.Dn=function(){return _.D[33]};U.En=function(){return _.D[40]};U.uo=function(){return _.D[34]};U.Kn=function(){return _.D[35]};U.Hn=function(){return _.D[36]};U.Jn=function(){return _.D[37]};U.ho=function(){return _.D[38]};U.Nn=function(){return _.D[46]};U.vj=function(){return _.D[47]};U.tj=function(){return _.D[48]};U.sj=function(){return _.D[49]};U.rj=function(){return _.D[50]};U.po=function(){return _.D[51]};var Gx=U;var Hx=Gx.qj,Ix=Gx.xj,Jx=Gx.wj,Kx=Gx.uj,Lx=Gx.vj,Mx=Gx.tj,Nx=Gx.sj,Ox=Gx.rj;var Px=function(a){var b=a.Dk;a=a.dir;return(0,_.El)('
Google '+T(Ix())+'

'+lv(Kx())+'


')},Qx=Tu["key_a:"]; if(Qx===void 0||0>Qx)Tu["key_a:"]=0,Uu["key_a:"]=Px;else if(0==Qx){if(Px===Uu["key_a:"])throw Error("Ha`a`");throw Error("Ia`a`");} var Rx=function(){return(0,_.El)('
')},Sx=function(a){var b=a.Ui,c=a.method,d=a.lj;a=a.dir;b='
';c=d.length;for(a=0;a';return(0,_.El)(b+ "
")},Vx=function(a){var b=a.dir;a=a.nl;return bt(ct(bt(ct(bt(_.Jl(),'
'+lv(Kx())+'
'+lv(Lx())+'
'+lv(Mx())+'
'),b==="rtl"?ct(ct(_.Jl(),Tx()),Ux()):ct(ct(_.Jl(),Ux()),Tx())),"
"),(0,_.El)('
')), "
")},Ux=function(){var a=_.Jl(),b=Nx();b=bt(a,'");return a},Tx=function(){var a=_.Jl(),b=Ox();b=bt(a,'");return a};rt(nn);nn.prototype.g=0;_.C(pn,_.ob);pn.prototype.Ha=nn.Gb();var on=null,Wx=function(a,b){switch(a){case 1:return b?"disable":"enable";case 2:return b?"highlight":"unhighlight";case 4:return b?"activate":"deactivate";case 8:return b?"select":"unselect";case 16:return b?"check":"uncheck";case 32:return b?"focus":"blur";case 64:return b?"open":"close"}throw Error("Ja");};pn.prototype.ab=function(){return this.Z||(this.Z=":"+(this.Ha.g++).toString(36))}; var Xx=function(a,b){if(a.G&&a.G.T){var c=a.G.T,d=a.Z;d in c&&delete c[d];c=a.G.T;if(c!==null&&b in c)throw Error("B`"+b);c[b]=a}a.Z=b};pn.prototype.D=function(){return this.o};var Yx=function(a,b){return a.o?Ps(b,a.o||a.h.g):null},Zx=function(a){a.K||(a.K=new _.Qb(a));return a.K};pn.prototype.ve=function(a){if(this.G&&this.G!=a)throw Error("La");pn.U.ve.call(this,a)};pn.prototype.W=function(){this.o=this.h.createElement("DIV")};pn.prototype.la=function(a){$x(this,a)}; pn.prototype.kd=function(a){$x(this,a.parentNode,a)};var $x=function(a,b,c){if(a.bb)throw Error("Ma");a.o||a.W();b?b.insertBefore(a.o,c||null):a.h.g.body.appendChild(a.o);a.G&&!a.G.bb||a.ya()};_.k=pn.prototype;_.k.Ya=function(a){if(this.bb)throw Error("Ma");if(a&&this.dg(a)){this.Fa=!0;var b=_.Fd(a);this.h&&this.h.g==b||(this.h=_.tb(a));this.Ea(a);this.ya()}else throw Error("Na");};_.k.dg=function(){return!0};_.k.Ea=function(a){this.o=a}; _.k.ya=function(){this.bb=!0;ay(this,function(a){!a.bb&&a.D()&&a.ya()})};_.k.va=function(){ay(this,function(a){a.bb&&a.va()});this.K&&_.Zf(this.K);this.bb=!1};_.k.N=function(){this.bb&&this.va();this.K&&(this.K.dispose(),delete this.K);ay(this,function(a){a.dispose()});!this.Fa&&this.o&&_.Od(this.o);this.G=this.o=this.T=this.I=null;pn.U.N.call(this)};var V=function(a,b){return a.ab()+"."+b},ay=function(a,b){a.I&&a.I.forEach(b,void 0)}; pn.prototype.Ff=function(a){for(var b=[];this.I&&this.I.length!=0;){var c=b,d=c.push,e=this.I?this.I[0]||null:null,f=a;if(e){var g=typeof e==="string"?e:e.ab();this.T&&g?(e=this.T,e=(e!==null&&g in e?e[g]:void 0)||null):e=null;if(g&&e){var h=this.T;g in h&&delete h[g];_.xa(this.I,e);f&&(e.va(),e.o&&_.Od(e.o));f=e;if(f==null)throw Error("Ka");f.G=null;pn.U.ve.call(f,null)}}if(!e)throw Error("Oa");d.call(c,e)}return b};_.C(qn,pn);_.k=qn.prototype;_.k.me=function(a){this.l=a};_.k.td=function(){if(!this.bb)throw Error("Pa");if(!this.l)throw Error("Qa");};_.k.Gc=function(){};_.k.dispose=function(){this.Na()||(qn.U.dispose.call(this),delete this.ie)};_.k.Ga=function(){return this.l};var by;_.C(tn,_.ob);var sn={},rn=0,cy=function(a,b){var c=_.tb(a);eu(b,function(d,e){Array.isArray(d)||(d=[d]);_.Nc(d,function(f){f=c.W("INPUT",{type:"hidden",name:e,value:f});a.appendChild(f)})})};_.k=tn.prototype;_.k.sa=null;_.k.eb=null;_.k.zc=null;_.k.Fk=0;_.k.jb=!1;_.k.bc=null; _.k.send=function(a,b,c,d){if(this.jb)throw Error("Ra");a=new mm(a);b=b?b.toUpperCase():"GET";c&&(c=_.Xc(),a.g.set("zx",c));by||(by=Pt("FORM"),by.acceptCharset="utf-8",c=by.style,c.position="absolute",c.visibility="hidden",c.top=c.left="-10px",c.width=c.height="10px",c.overflow="hidden",document.body.appendChild(by));this.sa=by;b=="GET"&&cy(this.sa,a.g);d&&cy(this.sa,d);a=a.toString();a=_.Tb(a);d=this.sa;a=_.Lg(new _.Gg(a));a!==void 0&&(d.action=a);this.sa.method=b;dy(this);ey(this)}; var fy=function(a,b){if(a.jb)throw Error("Ra");var c=new mm(b.action);a.sa=b;b=a.sa;c=_.Lg(c.toString());c!==void 0&&(b.action=c);dy(a)};tn.prototype.abort=function(){if(this.jb){var a=gy(this);if(a)if(_.Td(a))a.Za&&_.Xd(a.Za);else if(a=_.de(a)){var b=0,c;for(c in a.g)for(var d=a.g[c].concat(),e=0;e';d=_.xl(d)}else d=Dt(b),d= _.xl('');c.write(_.qj(d));_.pb(c.getElementById(b),"load",a.g,!1,a);d=Ot("TEXTAREA",a.sa);for(var e=0,f=d.length;e=48&&a<=57||a>=96&&a<=106||a>=65&&a<=90|| _.id&&a==0)return!0;switch(a){case 32:case 43:case 63:case 64:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:case 163:case 58:return!0;case 173:case 171:return _.hd;default:return!1}},ly=function(a){if(_.hd)a=ny(a);else if(_.kd&&_.id)a:switch(a){case 93:a=91;break a}return a},ny=function(a){switch(a){case 61:return 187;case 59:return 186;case 173:return 189;case 224:return 91;case 0:return 224; default:return a}};_.C(un,_.jb);_.C(vn,_.ob);_.k=vn.prototype;_.k.nc=null;_.k.ee=null;_.k.sf=null;_.k.ge=null;_.k.Pa=-1;_.k.Ib=-1;_.k.Oe=!1; var oy={3:13,12:144,63232:38,63233:40,63234:37,63235:39,63236:112,63237:113,63238:114,63239:115,63240:116,63241:117,63242:118,63243:119,63244:120,63245:121,63246:122,63247:123,63248:44,63272:46,63273:36,63275:35,63276:33,63277:34,63289:144,63302:45},py={Up:38,Down:40,Left:37,Right:39,Enter:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"U+007F":46,Home:36,End:35,PageUp:33,PageDown:34,Insert:45},qy=_.kd&&_.hd;_.k=vn.prototype; _.k.Rj=function(a){_.id&&(this.Pa==17&&!a.ctrlKey||this.Pa==18&&!a.altKey||_.kd&&this.Pa==91&&!a.metaKey)&&(this.Ib=this.Pa=-1);this.Pa==-1&&(a.ctrlKey&&a.keyCode!=17?this.Pa=17:a.altKey&&a.keyCode!=18?this.Pa=18:a.metaKey&&a.keyCode!=91&&(this.Pa=91));my(a.keyCode,this.Pa,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey)?(this.Ib=ly(a.keyCode),qy&&(this.Oe=a.altKey)):this.handleEvent(a)};_.k.Uj=function(a){this.Ib=this.Pa=-1;this.Oe=a.altKey}; _.k.handleEvent=function(a){var b=a.g,c=b.altKey;if(_.id&&a.type=="keypress"){var d=this.Ib;var e=b.charCode>=0&&b.charCode<63232&&ky(d)?b.charCode:0}else a.type=="keypress"?(qy&&(c=this.Oe),b.keyCode==b.charCode?b.keyCode<32?(d=b.keyCode,e=0):(d=this.Ib,e=b.charCode):(d=b.keyCode||this.Ib,e=b.charCode||0)):(d=b.keyCode||this.Ib,e=b.charCode||0),_.kd&&e==63&&d==224&&(d=191);var f=d=ly(d);d?d>=63232&&d in oy?f=oy[d]:d==25&&a.shiftKey&&(f=9):b.keyIdentifier&&b.keyIdentifier in py&&(f=py[b.keyIdentifier]); if(!_.hd||a.type!="keypress"||my(f,this.Pa,a.shiftKey,a.ctrlKey,c,a.metaKey))a=f==this.Pa,this.Pa=f,b=new un(f,e,a,b),b.altKey=c,this.dispatchEvent(b)};_.k.D=function(){return this.nc};_.k.attach=function(a,b){this.ge&&this.detach();this.nc=a;this.ee=_.pb(this.nc,"keypress",this,b);this.sf=_.pb(this.nc,"keydown",this.Rj,b,this);this.ge=_.pb(this.nc,"keyup",this.Uj,b,this)}; _.k.detach=function(){this.ee&&(_.ie(this.ee),_.ie(this.sf),_.ie(this.ge),this.ge=this.sf=this.ee=null);this.nc=null;this.Ib=this.Pa=-1};_.k.N=function(){vn.U.N.call(this);this.detach()};var wn;var ry=function(a){return typeof a.className=="string"?a.className:a.getAttribute&&a.getAttribute("class")||""},sy=function(a){return a.classList?a.classList:ry(a).match(/\S+/g)||[]},ty=function(a,b){typeof a.className=="string"?a.className=b:a.setAttribute&&a.setAttribute("class",b)},uy=function(a,b){return a.classList?a.classList.contains(b):_.va(sy(a),b)},vy=function(a,b){if(a.classList)a.classList.add(b);else if(!uy(a,b)){var c=ry(a);ty(a,c+(c.length>0?" "+b:b))}},wy=function(a,b){if(a.classList)Array.prototype.forEach.call(b, function(e){vy(a,e)});else{var c={};Array.prototype.forEach.call(sy(a),function(e){c[e]=!0});Array.prototype.forEach.call(b,function(e){c[e]=!0});b="";for(var d in c)b+=b.length>0?" "+d:d;ty(a,b)}},xy=function(a,b){a.classList?a.classList.remove(b):uy(a,b)&&ty(a,Array.prototype.filter.call(sy(a),function(c){return c!=b}).join(" "))},yy=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){xy(a,c)}):ty(a,Array.prototype.filter.call(sy(a),function(c){return!_.va(b,c)}).join(" "))};var zy=function(){},Ay;rt(zy);var By={button:"pressed",checkbox:"checked",menuitem:"selected",menuitemcheckbox:"checked",menuitemradio:"checked",radio:"checked",tab:"selected",treeitem:"selected"};_.k=zy.prototype;_.k.Md=function(){};_.k.W=function(a){return a.h.W("DIV",Cy(this,a).join(" "),a.ga())};_.k.Ce=function(){return!0}; _.k.Ya=function(a,b){b.id&&Xx(a,b.id);b&&b.firstChild?Dy(a,b.firstChild.nextSibling?_.za(b.childNodes):b.firstChild):a.Ob=null;var c=0,d=this.Fb(),e=this.Fb(),f=!1,g=!1,h=_.za(sy(b));h.forEach(function(m){f||m!=d?g||m!=e?c|=Ey(this,m):g=!0:(f=!0,e==d&&(g=!0));Ey(this,m)==1&&b.hasAttribute("tabindex")&&Wt(b)&&Xt(b,!1)},this);a.Aa=c;f||(h.push(d),e==d&&(g=!0));g||h.push(e);(a=a.Ze)&&h.push.apply(h,a);f&&g&&!a||ty(b,h.join(" "));return b}; _.k.gh=function(a){a.ua==null&&(a.ua=Lu(a.bb?a.o:a.h.g.body));a.ua&&this.Ee(a.D(),!0);a.isEnabled()&&this.Jc(a,a.isVisible())};var Fy=function(a,b){if(a=a.Md()){var c=b.getAttribute("role")||null;a!=c&&(a?b.setAttribute("role",a):b.removeAttribute("role"))}};_.k=zy.prototype;_.k.ud=function(a,b){_.pj&&a.style&&(a.style[_.pj]=b?"":"none")};_.k.Ee=function(a,b){var c=this.Fb()+"-SIsrTd";(a=a.D?a.D():a)&&(b?wy:yy)(a,[c])}; _.k.De=function(a){var b;return a.Ma&32&&(b=a.D())?b.hasAttribute("tabindex")&&Wt(b):!1};_.k.Jc=function(a,b){var c;if(a.Ma&32&&(c=a.D())){if(!b&&a.Aa&32){try{c.blur()}catch(d){}a.Aa&32&&a.Og(null)}(c.hasAttribute("tabindex")&&Wt(c))!=b&&Xt(c,b)}};_.k.ha=function(a,b){Ju(a,b);a&&xn(a,"hidden",!b)};_.k.Nc=function(a,b,c){var d=a.D();if(d){var e=Gy(this,b);e&&(a=a.D?a.D():a)&&(c?wy:yy)(a,[e]);this.hb(d,b,c)}}; _.k.hb=function(a,b,c){Ay||(Ay={1:"disabled",8:"selected",16:"checked",64:"expanded"});b=Ay[b];var d=a.getAttribute("role")||null;d&&(d=By[d]||b,b=b=="checked"||b=="selected"?d:b);b&&xn(a,b,c)};_.k.eg=function(a,b){if(a&&(_.Nd(a),b))if(typeof b==="string")_.Qd(a,b);else{var c=function(d){if(d){var e=_.Fd(a);a.appendChild(typeof d==="string"?e.createTextNode(d):d)}};Array.isArray(b)?b.forEach(c):!_.sa(b)||"nodeType"in b?c(b):_.za(b).forEach(c)}};_.k.Fb=function(){return"VIpgJd-bMcfAe"}; var Cy=function(a,b){var c=a.Fb(),d=[c],e=a.Fb();e!=c&&d.push(e);c=b.Aa;for(e=[];c;){var f=c&-c;e.push(Gy(a,f));c&=~f}d.push.apply(d,e);(a=b.Ze)&&d.push.apply(d,a);return d},Gy=function(a,b){a.g||Hy(a);return a.g[b]},Ey=function(a,b){if(!a.h){a.g||Hy(a);var c=a.g,d={},e;for(e in c)d[c[e]]=e;a.h=d}a=parseInt(a.h[b],10);return isNaN(a)?0:a},Hy=function(a){var b=a.Fb();a.g={1:b+"-OWB6Me",2:b+"-ZmdkE",4:b+"-auswjd",8:b+"-gk6SMd",16:b+"-barxie",32:b+"-XpnDCe",64:b+"-FNFY6c"}};_.C(yn,zy);rt(yn);_.k=yn.prototype;_.k.Md=function(){return"button"};_.k.hb=function(a,b,c){switch(b){case 8:case 16:xn(a,"pressed",c);break;default:case 64:case 1:yn.U.hb.call(this,a,b,c)}};_.k.W=function(a){var b=yn.U.W.call(this,a);this.Tf(b,a.Ga());var c=a.za();c&&this.La(b,c);a.Ma&16&&this.hb(b,16,!!(a.Aa&16));return b};_.k.Ya=function(a,b){b=yn.U.Ya.call(this,a,b);var c=this.za(b);a.l=c;a.J=this.Ga(b);a.Ma&16&&this.hb(b,16,!!(a.Aa&16));return b};_.k.za=function(){};_.k.La=function(){}; _.k.Ga=function(a){return a.title};_.k.Tf=function(a,b){a&&(b?a.title=b:a.removeAttribute("title"))};_.k.Fb=function(){return"VIpgJd-LgbsSe"};var Iy={hg:"mousedown",ig:"mouseup",gg:"mousecancel",om:"mousemove",qm:"mouseover",pm:"mouseout",lm:"mouseenter",nm:"mouseleave"};var An={};_.C(Bn,pn);_.k=Bn.prototype;_.k.Ob=null;_.k.Aa=0;_.k.Ma=39;_.k.Se=255;_.k.ib=!0;_.k.Ze=null;_.k.nf=!0;_.k.Ad=!1;var Fn=function(a){a.bb&&0!=a.nf&&Jy(a,!1);a.nf=!1};Bn.prototype.W=function(){var a=this.g.W(this);this.o=a;Fy(this.g,a);this.Ad||this.g.ud(a,!1);this.isVisible()||this.g.ha(a,!1)};Bn.prototype.dg=function(a){return this.g.Ce(a)};Bn.prototype.Ea=function(a){this.o=a=this.g.Ya(this,a);Fy(this.g,a);this.Ad||this.g.ud(a,!1);this.ib=a.style.display!="none"}; Bn.prototype.ya=function(){Bn.U.ya.call(this);var a=this.g,b=this.o;this.isVisible()||xn(b,"hidden",!this.isVisible());this.isEnabled()||a.hb(b,1,!this.isEnabled());this.Ma&8&&a.hb(b,8,!!(this.Aa&8));this.Ma&16&&a.hb(b,16,!!(this.Aa&16));this.Ma&64&&a.hb(b,64,this.Ac());this.g.gh(this);this.Ma&-2&&(this.nf&&Jy(this,!0),this.Ma&32&&(a=this.D()))&&(b=this.B||(this.B=new vn),b.attach(a),Zx(this).M(b,"key",this.Sj).M(a,"focus",this.fi).M(a,"blur",this.Og))}; var Jy=function(a,b){var c=Zx(a),d=a.D();b?(c.M(d,Iy.hg,a.Sg).M(d,[Iy.ig,Iy.gg],a.Tg).M(d,"mouseover",a.V).M(d,"mouseout",a.X),a.F!=_.xe&&c.M(d,"contextmenu",a.F)):(c.gb(d,Iy.hg,a.Sg).gb(d,[Iy.ig,Iy.gg],a.Tg).gb(d,"mouseover",a.V).gb(d,"mouseout",a.X),a.F!=_.xe&&c.gb(d,"contextmenu",a.F))};Bn.prototype.va=function(){Bn.U.va.call(this);this.B&&this.B.detach();this.isVisible()&&this.isEnabled()&&this.g.Jc(this,!1)}; Bn.prototype.N=function(){Bn.U.N.call(this);this.B&&(this.B.dispose(),delete this.B);delete this.g;this.Ze=this.Ob=null};Bn.prototype.ga=function(){return this.Ob};Bn.prototype.A=function(a){this.g.eg(this.D(),a);this.Ob=a};var Dy=function(a,b){a.Ob=b};_.k=Bn.prototype;_.k.Mh=function(a){this.A(a)};_.k.isVisible=function(){return this.ib};_.k.ha=function(a,b){if(b||this.ib!=a&&this.dispatchEvent(a?"show":"hide"))(b=this.D())&&this.g.ha(b,a),this.isEnabled()&&this.g.Jc(this,a),this.ib=a}; _.k.isEnabled=function(){return!(this.Aa&1)};_.k.pb=function(a){var b=this.G;b&&typeof b.isEnabled=="function"&&!b.isEnabled()||!Ky(this,1,!a)||(a||(Ly(this,!1),My(this,!1)),this.isVisible()&&this.g.Jc(this,a),Ny(this,1,!a,!0))};var My=function(a,b){Ky(a,2,b)&&Ny(a,2,b)};Bn.prototype.isActive=function(){return!!(this.Aa&4)};var Ly=function(a,b){Ky(a,4,b)&&Ny(a,4,b)};Bn.prototype.Ac=function(){return!!(this.Aa&64)}; var Ny=function(a,b,c,d){d||b!=1?a.Ma&b&&c!=!!(a.Aa&b)&&(a.g.Nc(a,b,c),a.Aa=c?a.Aa|b:a.Aa&~b):a.pb(!c)},Oy=function(a){if(a.bb&&a.Aa&32)throw Error("Ma");a.Aa&32&&Ny(a,32,!1);a.Ma&=-33},Py=function(a,b){return!!(a.Se&b)&&!!(a.Ma&b)},Qy=function(a){a.Se&=-256},Ky=function(a,b,c){return!!(a.Ma&b)&&!!(a.Aa&b)!=c&&(!(0&b)||a.dispatchEvent(Wx(b,c)))&&!a.Na()};Bn.prototype.V=function(a){!Ry(a,this.D())&&this.dispatchEvent("enter")&&this.isEnabled()&&Py(this,2)&&My(this,!0)}; Bn.prototype.X=function(a){!Ry(a,this.D())&&this.dispatchEvent("leave")&&(Py(this,4)&&Ly(this,!1),Py(this,2)&&My(this,!1))};Bn.prototype.F=_.xe;var Ry=function(a,b){return!!a.relatedTarget&&_.Pd(b,a.relatedTarget)};_.k=Bn.prototype;_.k.Sg=function(a){this.isEnabled()&&(Py(this,2)&&My(this,!0),a.g.button!=0||_.kd&&a.ctrlKey||(Py(this,4)&&Ly(this,!0),this.g&&this.g.De(this)&&this.D().focus()));this.Ad||a.g.button!=0||_.kd&&a.ctrlKey||a.preventDefault()}; _.k.Tg=function(a){this.isEnabled()&&(Py(this,2)&&My(this,!0),this.isActive()&&this.pe(a)&&Py(this,4)&&Ly(this,!1))};_.k.pe=function(a){if(Py(this,16)){var b=!(this.Aa&16);Ky(this,16,b)&&Ny(this,16,b)}Py(this,8)&&Ky(this,8,!0)&&Ny(this,8,!0);Py(this,64)&&(b=!this.Ac(),Ky(this,64,b)&&Ny(this,64,b));b=new _.ib("action",this);a&&(b.altKey=a.altKey,b.ctrlKey=a.ctrlKey,b.metaKey=a.metaKey,b.shiftKey=a.shiftKey,b.j=a.j,b.timeStamp=a.timeStamp);return this.dispatchEvent(b)}; _.k.fi=function(){Py(this,32)&&Ky(this,32,!0)&&Ny(this,32,!0)};_.k.Og=function(){Py(this,4)&&Ly(this,!1);Py(this,32)&&Ky(this,32,!1)&&Ny(this,32,!1)};_.k.Sj=function(a){return this.isVisible()&&this.isEnabled()&&this.mf(a)?(a.preventDefault(),a.stopPropagation(),!0):!1};_.k.mf=function(a){return a.keyCode==13&&this.pe(a)};if(typeof Bn!=="function")throw Error("Ua`"+Bn);if(typeof zy!=="function")throw Error("Va`"+zy);var Sy=_.Ca(Bn);An[Sy]=zy;zn("VIpgJd-bMcfAe",function(){return new Bn(null)});_.C(Cn,yn);rt(Cn);_.k=Cn.prototype;_.k.Md=function(){};_.k.W=function(a){Fn(a);Qy(a);Oy(a);var b=a.h,c=b.W,d={"class":Cy(this,a).join(" "),disabled:!a.isEnabled(),title:a.Ga()||"",value:a.za()||""};a=(a=a.ga())?(typeof a==="string"?a:Array.isArray(a)?a.map($t).join(""):Zt(a)).replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,""):"";return c.call(b,"BUTTON",d,a||"")};_.k.Ce=function(a){return a.tagName=="BUTTON"||a.tagName=="INPUT"&&(a.type=="button"||a.type=="submit"||a.type=="reset")}; _.k.Ya=function(a,b){Fn(a);Qy(a);Oy(a);if(b.disabled){var c=Gy(this,1);vy(b,c)}return Cn.U.Ya.call(this,a,b)};_.k.gh=function(a){Zx(a).M(a.D(),"click",a.pe)};_.k.ud=function(){};_.k.Ee=function(){};_.k.De=function(a){return a.isEnabled()};_.k.Jc=function(){};_.k.Nc=function(a,b,c){Cn.U.Nc.call(this,a,b,c);(a=a.D())&&b==1&&(a.disabled=c)};_.k.za=function(a){return a.value};_.k.La=function(a,b){a&&(a.value=b)};_.k.hb=function(){};_.C(Dn,Bn);_.k=Dn.prototype;_.k.za=function(){return this.l};_.k.La=function(a){this.l=a;this.g.La(this.D(),a)};_.k.Ga=function(){return this.J};_.k.Tf=function(a){this.J=a;this.g.Tf(this.D(),a)};_.k.N=function(){Dn.U.N.call(this);delete this.l;delete this.J};_.k.ya=function(){Dn.U.ya.call(this);if(this.Ma&32){var a=this.D();a&&Zx(this).M(a,"keyup",this.mf)}};_.k.mf=function(a){return a.keyCode==13&&a.type=="key"||a.keyCode==32&&a.type=="keyup"?this.pe(a):a.keyCode==32};zn("VIpgJd-LgbsSe",function(){return new Dn(null)});var Ty=function(a,b){pn.call(this);this.C=a||"";this.j=null;this.B=[];this.g=null;this.F=b||"GET";this.l=this.A=null};_.z(Ty,pn);Ty.prototype.W=function(){var a={Ui:this.C,method:this.F,lj:this.B,dir:_.Ef.test(Qv)?"rtl":"ltr"};this.Ea(ym(Sx,a))};Ty.prototype.Ea=function(a){this.o=a;this.g=Yx(this,"VIpgJd-yAWNEb-Z0Arqf-I9GLp");a=Yx(this,"VIpgJd-yAWNEb-Z0Arqf-sFeBqf");this.l=new Dn("");this.l.Ya(a);a=Yx(this,"activity-cancel");this.j=new Dn("");this.j.Ya(a)}; Ty.prototype.ya=function(){var a=Zx(this);a.M(this.l,"action",(0,_.x)(this.J,this));a.M(this.j,"action",this.dispatchEvent.bind(this,"cancelled"))};Ty.prototype.J=function(){var a=!0;this.A&&(a=this.A());a&&(a=new tn,_.pb(a,"success",function(){this.dispatchEvent("successful")}),_.pb(a,"error",function(){this.dispatchEvent("failed")}),fy(a,this.g));this.dispatchEvent("submitted")};var Uy=function(a,b){for(var c in b)a.g[c]&&(a.g[c].value=b[c])},Vy=function(a,b){return a.g[b]?a.g[b].value:""}; Ty.prototype.N=function(){this.l=this.g=this.j=null;pn.prototype.N.call(this)};var Wy=function(a,b){a.A=b};_.C(En,zy);rt(En);_.k=En.prototype;_.k.Md=function(){};_.k.Ya=function(a,b){Fn(a);Qy(a);Oy(a);En.U.Ya.call(this,a,b);a.A(b.value);return b};_.k.W=function(a){Fn(a);Qy(a);Oy(a);return a.h.W("TEXTAREA",{"class":Cy(this,a).join(" "),disabled:!a.isEnabled()},a.ga()||"")};_.k.Ce=function(a){return a.tagName=="TEXTAREA"};_.k.Ee=function(){};_.k.De=function(a){return a.isEnabled()};_.k.Jc=function(){};_.k.Nc=function(a,b,c){En.U.Nc.call(this,a,b,c);(a=a.D())&&b==1&&(a.disabled=c)};_.k.hb=function(){}; _.k.eg=function(a,b){a&&(a.value=b)};_.k.Fb=function(){return"VIpgJd-B7I4Od"};_.C(Gn,Bn);_.k=Gn.prototype;_.k.Bc=!1;_.k.Wd=!1;_.k.xc=!1;_.k.yb=0;_.k.ph=0;_.k.zf=0;_.k.Zg=!1;_.k.je=!1;_.k.Nf=!1;_.k.Mf=!1;_.k.Hc="";var Xy=function(a){return a.j.top+a.j.bottom+a.P.top+a.P.bottom},Yy=function(a){var b=a.zf,c=a.D();b&&c&&a.je&&(b-=Xy(a));return b},$y=function(a){a.zf=50;Zy(a)},az=function(a){a.ph=50;Zy(a)};Gn.prototype.La=function(a){this.A(String(a))};Gn.prototype.za=function(){return this.D().value!=this.Hc||bz(this)||this.xc?this.D().value:""}; Gn.prototype.A=function(a){Gn.U.A.call(this,a);this.xc=a!="";Zy(this)};Gn.prototype.pb=function(a){Gn.U.pb.call(this,a);this.D().disabled=!a};var Zy=function(a){a.D()&&a.C()},bz=function(a){return"placeholder"in a.D()},cz=function(a){a.Hc&&(bz(a)?a.D().placeholder=a.Hc:!a.D()||a.xc||a.Wd||(vy(a.D(),"B7I4Od-LwH6nd-YPqjbf"),a.D().value=a.Hc))}; Gn.prototype.ya=function(){Gn.U.ya.call(this);var a=this.D();_.mj(a,{overflowY:"hidden",overflowX:"auto",boxSizing:"border-box",MsBoxSizing:"border-box",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box"});this.j=Pu(a);this.P=Qu(a);Zx(this).M(a,"scroll",this.C).M(a,"focus",this.C).M(a,"keyup",this.C).M(a,"mouseup",this.xa).M(a,"blur",this.da);cz(this);Zy(this)}; var dz=function(a){if(!a.Zg){var b=a.D().cloneNode(!1);_.mj(b,{position:"absolute",height:"auto",top:"-9999px",margin:"0",padding:"1px",border:"1px solid #000",overflow:"hidden"});a.h.g.body.appendChild(b);var c=b.scrollHeight;b.style.padding="10px";var d=b.scrollHeight;a.Nf=d>c;b.style.borderWidth="10px";a.Mf=b.scrollHeight>d;b.style.height="100px";b.offsetHeight!=100&&(a.je=!0);_.Od(b);a.Zg=!0}b=a.D();isNaN(a.j.top)&&(a.j=Pu(b),a.P=Qu(b));c=a.D().scrollHeight;var e=a.D();d=e.offsetHeight-e.clientHeight; if(!a.Nf){var f=a.j;d-=f.top+f.bottom}a.Mf||(e=Qu(e),d-=e.top+e.bottom);c+=d>0?d:0;a.je?c-=Xy(a):(a.Nf||(d=a.j,c+=d.top+d.bottom),a.Mf||(a=Qu(b),c+=a.top+a.bottom));return c},ez=function(a,b){a.yb!=b&&(a.yb=b,a.D().style.height=b+"px")},fz=function(a){var b=a.D();b.style.height="auto";var c=b.value.match(/\n/g)||[];b.rows=c.length+1;a.yb=0};Gn.prototype.da=function(){bz(this)||(this.Wd=!1,this.D().value==""&&(this.xc=!1,cz(this)))}; Gn.prototype.C=function(a){if(!this.Bc){var b=this.D();!bz(this)&&a&&a.type=="focus"&&(b.value==this.Hc&&this.Hc&&!this.Wd&&(xy(b,"B7I4Od-LwH6nd-YPqjbf"),b.value=""),this.Wd=!0,this.xc=b.value!="");var c=!1;this.Bc=!0;a=this.yb;if(b.scrollHeight){var d=!1,e=!1,f=dz(this),g=b.offsetHeight,h=Yy(this);var m=this.ph;var n=this.D();m&&n&&this.je&&(m-=Xy(this));h&&fm?(ez(this,m),b.style.overflowY="",e=!0):g!=f?ez(this,f):this.yb||(this.yb=f);d||e||(c=!0)}else fz(this);this.Bc= !1;c&&(b=this.D(),this.Bc||(this.Bc=!0,(e=b.scrollHeight)?(f=dz(this),c=Yy(this),c&&f<=c||(d=this.j,b.style.paddingTop=d.top+1+"px",dz(this)==f&&(b.style.paddingTop=d.top+e+"px",b.scrollTop=0,e=dz(this)-e,e>=c?ez(this,e):ez(this,c)),b.style.paddingTop=d.top+"px")):fz(this),this.Bc=!1));a!=this.yb&&this.dispatchEvent("resize")}}; Gn.prototype.xa=function(){var a=this.D(),b=a.offsetHeight;a.filters&&a.filters.length&&(a=a.filters.item("DXImageTransform.Microsoft.DropShadow"))&&(b-=a.offX);b!=this.yb&&(this.yb=this.zf=b)};var gz=function(a,b){qn.call(this,a);this.B=!1;this.A=b||{};this.j=null};_.z(gz,qn);_.k=gz.prototype;_.k.me=function(a){qn.prototype.me.call(this,a);Zx(this).M(this.j.D(),"keydown",(0,_.x)(this.Ga().md,this.Ga(),!1));this.B=this.Ga().Sc;this.td()};_.k.td=function(){qn.prototype.td.call(this);this.j.A(this.Ga().Z);var a=this.Ga().Oa(),b=this.Ga().ra();a&&b&&(Uy(this.g,{gtrans:this.Ga().Z,text:this.Ga().vd(),hl:Qv,langpair:a+"|"+b}),Uy(this.g,this.A));this.dispatchEvent("ready");this.j.D().focus()}; _.k.Gc=function(){this.Ga().md(this.B)};_.k.W=function(){this.Ea(ym(Rx))};_.k.Ea=function(a){this.o=a;a=Yx(this,"contribute-original-text");this.j=new Gn("");this.j.Ya(a);az(this.j);$y(this.j);a=Yx(this,"activity-form-container");this.g=new Ty(gw,"POST");this.g.B=Ul(this.A);Wy(this.g,(0,_.x)(function(){Uy(this.g,{utrans:_.Sc(this.j.za())});return Vy(this.g,"utrans")!=Vy(this.g,"gtrans")},this));this.g.la(a)}; _.k.ya=function(){qn.prototype.ya.call(this);var a=Zx(this);a.M(this.g,"cancelled",(0,_.x)(function(){this.dispatchEvent("cancelled")},this));a.M(this.g,"submitted",(0,_.x)(function(){var b=this.Ga(),c=this.j.za();b.Z=c&&_.Sc(c);this.dispatchEvent("submitted");b=U.Ai;_.Qd(this.Ga().o.D(),b)},this))};_.k.N=function(){this.j&&this.j.dispose();this.j=null;this.g&&this.g.dispose();this.g=null;qn.prototype.N.call(this)};var hz=function(a){_.ob.call(this);this.o=a;this.A={};this.j=new _.Qb(this);this.l=null};_.z(hz,_.ob);hz.prototype.attach=function(){};hz.prototype.detach=function(){};hz.prototype.N=function(){this.j.dispose();this.j=null};var iz=function(a,b,c){if(b=a.o.j[b]){c=c||typeof c=="undefined";for(var d=0;d2147483647?-1:_.r.setTimeout(a,b||0)};_.C(Hn,_.l);_.k=Hn.prototype;_.k.Oc=0;_.k.N=function(){Hn.U.N.call(this);this.stop();delete this.h;delete this.j};_.k.start=function(a){this.stop();this.Oc=jz(this.g,a!==void 0?a:this.l)};_.k.stop=function(){this.isActive()&&_.r.clearTimeout(this.Oc);this.Oc=0};_.k.isActive=function(){return this.Oc!=0};_.k.gi=function(){this.Oc=0;this.h&&this.h.call(this.j)};var Vl={},kz=null,lz=function(a){a=_.Ca(a);delete Vl[a];Wl()&&kz&&kz.stop()},nz=function(){kz||(kz=new Hn(function(){mz()},20));var a=kz;a.isActive()||a.start()},mz=function(){var a=_.Ic();_.Rc(Vl,function(b){oz(b,a)});Wl()||nz()};_.C(In,_.ob);In.prototype.j=function(){this.h("begin")};In.prototype.l=function(){this.h("end")};In.prototype.Gc=function(){this.h("stop")};In.prototype.h=function(a){this.dispatchEvent(a)};var Jn=function(a,b,c,d){In.call(this);if(!Array.isArray(a)||!Array.isArray(b))throw Error("Xa");if(a.length!=b.length)throw Error("Ya");this.o=a;this.I=b;this.duration=c;this.G=d;this.coords=[];this.progress=this.F=0;this.lastFrame=null};_.C(Jn,In); Jn.prototype.play=function(a){if(a||this.g==0)this.progress=0,this.coords=this.o;else if(this.g==1)return!1;lz(this);this.startTime=a=_.Ic();this.g==-1&&(this.startTime-=this.duration*this.progress);this.endTime=this.startTime+this.duration;this.lastFrame=this.startTime;this.progress||this.j();this.h("play");this.g==-1&&this.h("resume");this.g=1;var b=_.Ca(this);b in Vl||(Vl[b]=this);nz();oz(this,a);return!0}; Jn.prototype.stop=function(a){lz(this);this.g=0;a&&(this.progress=1);pz(this,this.progress);this.Gc();this.l()};Jn.prototype.Rf=function(a){this.progress=a;this.g==1&&(this.startTime=_.Ic()-this.duration*this.progress,this.endTime=this.startTime+this.duration)};Jn.prototype.N=function(){this.g==0||this.stop(!1);this.h("destroy");Jn.U.N.call(this)}; var oz=function(a,b){b1&&(a.progress=1);a.F=1E3/(b-a.lastFrame);a.lastFrame=b;pz(a,a.progress);a.progress==1?(a.g=0,lz(a),a.h("finish"),a.l()):a.g==1&&a.C()},pz=function(a,b){typeof a.G==="function"&&(b=a.G(b));a.coords=Array(a.o.length);for(var c=0;c=uz){var b=this.element.style;"opacity"in b?b.opacity=a:"MozOpacity"in b?b.MozOpacity=a:"filter"in b&&(b.filter=a===""?"":"alpha(opacity="+Number(a)*100+")");this.A=a}};Ln.prototype.j=function(){this.A=-1;Ln.U.j.call(this)}; Ln.prototype.l=function(){this.A=-1;Ln.U.l.call(this)};Ln.prototype.show=function(){this.element.style.display=""};_.C(Mn,Ln);Mn.prototype.j=function(){this.show();Mn.U.j.call(this)};Mn.prototype.l=function(){this.element.style.display="none";Mn.U.l.call(this)};_.C(Nn,Ln);Nn.prototype.j=function(){this.show();Nn.U.j.call(this)};var vz=function(){pn.call(this);this.g=null};_.z(vz,pn);vz.prototype.W=function(){this.Ea(this.h.W("DIV",{"class":"status-message"}))};vz.prototype.Ea=function(a){this.o=a;a.style.display="none"};var xz=function(a){var b=c;var c=(0,_.x)(function(){_.Qd(this.D(),"");b&&b()},a);c=(0,_.x)(a.j,a,750,c);wz(a,c)};vz.prototype.clear=function(){this.g&&(this.g.stop(!0),this.g=null);_.Qd(this.D(),"");this.ha(!1)}; var wz=function(a,b){a.g=new Nn(a.D(),750);Zx(a).Jb(a.g,"begin",(0,_.x)(function(){this.D().style.display="block"},a));Zx(a).Jb(a.g,"finish",(0,_.x)(function(){this.g=null;window.setTimeout(b,2E3)},a));a.g.play()};vz.prototype.j=function(a,b){this.isVisible()&&(this.g=new Mn(this.D(),a),Zx(this).Jb(this.g,"finish",(0,_.x)(function(){b&&b()},this)),this.g.play())};vz.prototype.getMessage=function(){return Zt(this.D())}; vz.prototype.ha=function(a){this.D().style.display=a?"block":"none";this.D().style.opacity=a?"1":"0"};vz.prototype.isVisible=function(){return this.D().style.display!=="none"&&this.D().style.opacity!=="0"};_.C(On,_.ob);_.k=On.prototype;_.k.Ua=null;_.k.Sc=!0;_.k.sg=null;_.k.ec=!1;_.k.tf=-1;_.k.Mc="toggle_display";_.k.D=function(){return this.Ua};_.k.Ic=function(a){if(this.ec)throw Error("$a");this.Ua=a};_.k.md=function(a){if(this.ec)throw Error("$a");this.Sc=a};_.k.isVisible=function(){return this.ec}; _.k.ha=function(a){this.kb&&this.kb.stop();this.Fa&&this.Fa.stop();if(a){if(!this.ec&&this.Fe()){if(!this.Ua)throw Error("ab");this.rb();a=_.Fd(this.Ua);this.Sc&&(this.C.M(a,"mousedown",this.zh,!0),this.C.M(a,"blur",this.Gk));this.Mc=="toggle_display"?(this.Ua.style.visibility="visible",Ju(this.Ua,!0)):this.Mc=="move_offscreen"&&this.rb();this.ec=!0;this.tf=Date.now();this.kb?(_.ae(this.kb,"end",this.Ah,!1,this),this.kb.play()):this.Ah()}}else yz(this)};_.k.rb=function(){}; var yz=function(a,b){a.ec&&a.dispatchEvent({type:"beforehide",target:b})&&(a.C&&_.Zf(a.C),a.ec=!1,a.Fa?(_.ae(a.Fa,"end",_.Hc(a.zg,b),!1,a),a.Fa.play()):a.zg(b))};_.k=On.prototype;_.k.zg=function(a){this.Mc=="toggle_display"?this.gk():this.Mc=="move_offscreen"&&(this.Ua.style.top="-10000px");this.Cf(a)};_.k.gk=function(){this.Ua.style.visibility="hidden";Ju(this.Ua,!1)};_.k.Fe=function(){return this.dispatchEvent("beforeshow")};_.k.Ah=function(){this.dispatchEvent("show")}; _.k.Cf=function(a){this.dispatchEvent({type:"hide",target:a})};_.k.zh=function(a){a=a.target;_.Pd(this.Ua,a)||zz(this,a)||Date.now()-this.tf<150||yz(this,a)};_.k.Gk=function(a){var b=_.Fd(this.Ua);if(typeof document.activeElement!="undefined"){if(a=b.activeElement,!a||_.Pd(this.Ua,a)||a.tagName=="BODY"||zz(this,a))return}else if(a.target!=b)return;Date.now()-this.tf<150||yz(this)};var zz=function(a,b){return _.Pc(a.sg||[],function(c){return b===c||_.Pd(c,b)})}; On.prototype.N=function(){On.U.N.call(this);this.C.dispose();_.qa(this.kb);_.qa(this.Fa);delete this.Ua;delete this.C;delete this.sg};_.C(Pn,_.ob);Pn.prototype.handleEvent=function(a){var b=new _.jb(a.g);b.type=a.type=="focusin"||a.type=="focus"?"focusin":"focusout";this.dispatchEvent(b)};Pn.prototype.N=function(){Pn.U.N.call(this);_.ie(this.h);_.ie(this.j);delete this.g};Qn.prototype.h=function(){};var Cz=function(a,b,c,d,e,f,g){var h;if(h=c.offsetParent){var m=h.tagName=="HTML"||h.tagName=="BODY";if(!m||zu(h,"position")!="static"){var n=Eu(h);if(!m){m=Lu(h);var q;if(q=m){q=_.Wh&&Zl(tz,10)>=0;var u;if(u=_.qd)u=Zl(rz,10)>=0;var p=_.Vh&&Zl(tz,85)>=0;q=_.hd||q||u||p}m=q?-h.scrollLeft:m&&zu(h,"overflowX")!="visible"?h.scrollWidth-h.clientWidth-h.scrollLeft:h.scrollLeft;n=tt(n,new Kl(m,h.scrollTop))}}}h=n||new Kl;n=Eu(a);m=Iu(a);n=new Km(n.x,n.y,m.width,m.height);if(m=Fu(a))p=new Km(m.left,m.top, m.right-m.left,m.bottom-m.top),m=Math.max(n.left,p.left),q=Math.min(n.left+n.width,p.left+p.width),m<=q&&(u=Math.max(n.top,p.top),p=Math.min(n.top+n.height,p.top+p.height),u<=p&&(n.left=m,n.top=u,n.width=q-m,n.height=p-u));q=_.tb(a);m=_.tb(c);q.g!=m.g&&(q=q.g.body,m=Gu(q,m.g.defaultView),m=tt(m,Eu(q)),n.left+=m.x,n.top+=m.y);a=Az(a,b);b=n.left;a&4?b+=n.width:a&2&&(b+=n.width/2);b=new Kl(b,n.top+(a&1?n.height:0));b=tt(b,h);e&&(b.x+=(a&4?-1:1)*e.x,b.y+=(a&1?-1:1)*e.y);var t;g&&(t=Fu(c))&&(t.top-=h.y, t.right-=h.x,t.bottom-=h.y,t.left-=h.x);return Bz(b,c,d,f,t,g)},Bz=function(a,b,c,d,e,f){a=Js(a);var g=Az(b,c);c=Iu(b);var h=new _.Ea(c.width,c.height);a=Js(a);h=new _.Ea(h.width,h.height);var m=0;if(d||g!=0)g&4?a.x-=h.width+(d?d.right:0):g&2?a.x-=h.width/2:d&&(a.x+=d.left),g&1?a.y-=h.height+(d?d.bottom:0):d&&(a.y+=d.top);f&&(e?(d=h,g=0,(f&65)==65&&(a.x=e.right)&&(f&=-2),(f&132)==132&&(a.y=e.bottom)&&(f&=-5),a.xe.right&&(d.width=Math.min(e.right-a.x,m+d.width-e.left),d.width=Math.max(d.width,0),g|=4)),a.x+d.width>e.right&&f&1&&(a.x=Math.max(e.right-d.width,e.left),g|=1),f&2&&(g|=(a.xe.right?32:0)),a.ye.bottom&&(d.height=Math.min(e.bottom-a.y,m+d.height-e.top),d.height=Math.max(d.height,0),g|=8)),a.y+d.height>e.bottom&&f&4&&(a.y=Math.max(e.bottom-d.height,e.top),g|=2),f& 8&&(g|=(a.ye.bottom?128:0)),e=g):e=256,m=e);e=new Km(0,0,0,0);e.left=a.x;e.top=a.y;e.width=h.width;e.height=h.height;a=m;if(a&496)return a;Bu(b,new Kl(e.left,e.top));h=new _.Ea(e.width,e.height);_.Qc(c,h)||Nu(b,h,"border-box");return a},Az=function(a,b){return(b&8&&Lu(a)?b^4:b)&-9};_.C(Rn,Qn);Rn.prototype.h=function(a,b,c){Cz(this.element,this.j,a,b,void 0,c,this.l)};_.C(Sn,Qn);Sn.prototype.h=function(a,b,c){Cz((a?_.Fd(a):document).documentElement,0,a,b,this.g,c,null)};_.C(Tn,On);Tn.prototype.rb=function(){if(this.B){var a=!this.isVisible()&&this.Mc!="move_offscreen",b=this.D();a&&(b.style.visibility="hidden",Ju(b,!0));this.B.h(b,8,this.pk);a&&Ju(b,!1)}};_.C(Vn,Tn);var Dz=[];_.k=Vn.prototype;_.k.Ia=null;_.k.className="VIpgJd-suEOdc";_.k.Oh=500;_.k.ah=0;_.k.attach=function(a){a=Un(a);this.G.add(a);_.pb(a,"mouseover",this.Ge,!1,this);_.pb(a,"mouseout",this.wc,!1,this);_.pb(a,"mousemove",this.de,!1,this);_.pb(a,"focus",this.Ld,!1,this);_.pb(a,"blur",this.wc,!1,this)};_.k.detach=function(a){var b=this;a?(a=Un(a),Ez(this,a),this.G.delete(a)):(this.G.forEach(function(c){Ez(b,c)}),this.G.clear())}; var Ez=function(a,b){_.he(b,"mouseover",a.Ge,!1,a);_.he(b,"mouseout",a.wc,!1,a);_.he(b,"mousemove",a.de,!1,a);_.he(b,"focus",a.Ld,!1,a);_.he(b,"blur",a.wc,!1,a)};Vn.prototype.cb=function(a){_.Qd(this.D(),a)}; Vn.prototype.Ic=function(a){var b=this.D();b&&_.Od(b);Vn.U.Ic.call(this,a);a?(b=this.X.g.body,b.insertBefore(a,b.lastChild),_.qa(this.I),this.I=new Pn(this.D()),_.kk(this,_.Hc(_.qa,this.I)),_.pb(this.I,"focusin",this.P,void 0,this),_.pb(this.I,"focusout",this.Qb,void 0,this)):(_.qa(this.I),this.I=null)};Vn.prototype.vd=function(){return Zt(this.D())};var Fz=function(a){return a.V?a.isVisible()?4:1:a.xa?3:a.isVisible()?2:0}; Vn.prototype.Fe=function(){if(!On.prototype.Fe.call(this))return!1;if(this.g)for(var a,b=0;a=Dz[b];b++)_.Pd(a.D(),this.g)||a.ha(!1);_.wa(Dz,this);a=this.D();a.className=this.className;this.P();_.pb(a,"mouseover",this.Ud,!1,this);_.pb(a,"mouseout",this.Td,!1,this);Gz(this);return!0}; Vn.prototype.Cf=function(){_.xa(Dz,this);for(var a=this.D(),b,c=0;b=Dz[c];c++)b.g&&_.Pd(a,b.g)&&b.ha(!1);this.mh&&this.mh.Qb();_.he(a,"mouseover",this.Ud,!1,this);_.he(a,"mouseout",this.Td,!1,this);this.g=void 0;Fz(this)==0&&(this.Pb=!1);On.prototype.Cf.call(this)};Vn.prototype.yf=function(a,b){this.g==a&&this.G.has(this.g)&&(this.Pb||!this.Eo?(this.ha(!1),this.isVisible()||(this.g=a,this.B=b||new Hz(Js(this.ad)),this.isVisible()&&this.rb(),this.ha(!0))):this.g=void 0);this.V=void 0}; Vn.prototype.Ek=function(a){this.xa=void 0;if(a==this.g){a=this.X;var b=a.g;try{var c=b&&b.activeElement;var d=c&&c.nodeName?c:null}catch(e){d=null}d=d&&this.D()&&a.contains(this.D(),d);this.Ia!=null&&(this.Ia==this.D()||this.G.has(this.Ia))||d||this.Yd&&this.Yd.Ia||this.ha(!1)}};var Iz=function(a,b){var c=Rs(a.X.g);a.ad.x=b.clientX+c.x;a.ad.y=b.clientY+c.y};Vn.prototype.Ge=function(a){var b=Jz(this,a.target);this.Ia=b;this.P();b!=this.g&&(this.g=b,Kz(this,b),Lz(this),Iz(this,a))}; var Jz=function(a,b){try{for(;b&&!a.G.has(b);)b=b.parentNode;return b}catch(c){return null}};Vn.prototype.de=function(a){Iz(this,a);this.Pb=!0};Vn.prototype.Ld=function(a){this.Ia=a=Jz(this,a.target);this.Pb=!0;if(this.g!=a){this.g=a;var b=new Mz(this.Ia);this.P();Kz(this,a,b);Lz(this)}};var Lz=function(a){if(a.g)for(var b,c=0;b=Dz[c];c++)_.Pd(b.D(),a.g)&&(b.Yd=a,a.mh=b)}; Vn.prototype.wc=function(a){var b=Jz(this,a.target),c=Jz(this,a.relatedTarget);b!=c&&(b==this.Ia&&(this.Ia=null),Gz(this),this.Pb=!1,!this.isVisible()||a.relatedTarget&&_.Pd(this.D(),a.relatedTarget)?this.g=void 0:this.Qb())};Vn.prototype.Ud=function(){var a=this.D();this.Ia!=a&&(this.P(),this.Ia=a)};Vn.prototype.Td=function(a){var b=this.D();this.Ia!=b||a.relatedTarget&&_.Pd(b,a.relatedTarget)||(this.Ia=null,this.Qb())}; var Kz=function(a,b,c){a.V||(a.V=jz((0,_.x)(a.yf,a,b,c),a.Oh))},Gz=function(a){a.V&&(_.r.clearTimeout(a.V),a.V=void 0)};Vn.prototype.Qb=function(){Fz(this)==2&&(this.xa=jz((0,_.x)(this.Ek,this,this.g),this.ah))};Vn.prototype.P=function(){this.xa&&(_.r.clearTimeout(this.xa),this.xa=void 0)};Vn.prototype.N=function(){this.ha(!1);Gz(this);this.detach();this.D()&&_.Od(this.D());this.Ia=null;delete this.X;Vn.U.N.call(this)};var Hz=function(a,b){Sn.call(this,a,b)};_.C(Hz,Sn); Hz.prototype.h=function(a,b,c){b=Fu((a?_.Fd(a):document).documentElement);c=c?new Jm(c.top+10,c.right,c.bottom,c.left+10):new Jm(10,0,0,10);Bz(this.g,a,8,c,b,9)&496&&Bz(this.g,a,8,c,b,5)};var Mz=function(a){Rn.call(this,a,5)};_.C(Mz,Rn);Mz.prototype.h=function(a,b,c){var d=new Kl(10,0);Cz(this.element,this.j,a,b,d,c,9)&496&&Cz(this.element,4,a,1,d,c,5)};var Nz=function(){Vn.call(this);this.da={};this.uc={};this.J=null;this.Pd=!1;this.Yc=this.h=this.T=null;this.ua={};this.A=new _.Qb(this);this.F=this.j=this.o=this.Rb=this.l=this.Z=this.Ha=null;this.K=!0;this.Tb=[]};_.z(Nz,Vn);_.k=Nz.prototype; _.k.la=function(){this.K=!1;var a=_.Ef.test(Qv)?"rtl":"ltr";this.Ic(ym(Vx,{Dk:"https://www.gstatic.com/images/branding/product/1x/translate_24dp.png",vn:"https://www.google.com/images/cleardot.gif",yo:bw,dir:a,nl:hw}));this.className+=" VIpgJd-yAWNEb-L7lbkb skiptranslate";if(a=!!(this.D()&&this.J&&this.Rb&&this.o.D()&&this.T&&this.F))if(this.A.M(window,"resize",(0,_.x)(this.rb,this)),this.A.M(this,"hide",(0,_.x)(this.Jk,this)),this.Tb.length)return a=this.qg.apply(this,this.Tb),this.Tb=[],a;return a}; _.k.qg=function(a){for(var b=[],c=0;c=0||a.o>=0||a.h>=0||a.l>=0)f.pt=a.j,f.pv=a.o,f.pts=a.h,f.pvs=a.l;en("te_v",f);a.j=b;a.o=c;a.h=d;a.l=e}};var cA=function(){this.o=this.j=this.A=this.l=0;this.g=[];this.h=_.r.IntersectionObserver!=null?new IntersectionObserver((0,_.x)(this.B,this)):null};cA.prototype.attach=function(a,b){this.j+=b;var c=this.g.length;this.g.push(b);for(b=0;b0&&c.target[dA]!=null){this.A+=Zt(c.target).length;var d=c.target[dA];this.o+=this.g[d];this.g[d]=0;delete c.target[dA]}}};cx.attach(36546,cA.prototype,{nh:1});var dA="_gt_"+Math.random().toString(36).substr(2);var eA=function(a,b){_.l.call(this);a=a||{};this.g=Xl(a);this.g.Xb=a.Xb;this.g.Uf=!!a.Uf;this.g.aj=parseInt(a.aj,10)||300;this.g.Nk=a.Nk;this.g.trackVisibility=a.trackVisibility||!1;this.B=0;this.j={};this.A=new _.Qb(this);this.l=new $z(this,this.g);b&&(this.l.A=b||{});a=this.l;a.h=new Nz({Zk:a.g.Zk});a.h.ah=300;a.h.Oh=1E3;a.h.md(!0);a.j.M(a.h,"show",(0,_.x)(a.ii,a));a.j.M(a.h,"hide",(0,_.x)(a.hi,a));a.g.Xb&&Yv!="te_cl"&&(b=new gz({id:"contribute",uf:U.di,he:"dblclick",Te:!0},a.A),a.h.qg(b),a.j.M(b, "submitted",(0,_.x)(a.Hk,a)));a.h.la();a=new Pz;Un("goog-gt-thumbUpButton")&&(Tz(a),Vz(a),Yz(a));this.o=this.h=null;this.g.trackVisibility&&_.r.IntersectionObserver!=null&&(this.h=new cA,this.o=new aA(this.h))};_.z(eA,_.l);var fA=function(a){a.o&&a.o.stop();for(var b in a.j){var c=a,d=b,e=c.j[d];if(e){c.h&&c.h.detach(e.Ka);for(var f=0;fg[e[h]])){if(g[m]== g[e[h]]){if(f[m].node.parentNode!=f[e[h]].node.parentNode)continue}else{for(var n=g[e[h]]-g[m],q=f[e[h]].node.parentNode;n--&&q&&q!=f[m].node.parentNode;)q=q.parentNode;if(q!=f[m].node.parentNode)continue}c[h].push(m)}d=a.g;e=a.h;f=-1;for(g=e.length-1;g>=0;--g)for(h=e[g],m=h.parts.length-1;m>=0;--m)if(n=h.parts[m],!(n.aa<0)&&d[n.aa]&&d[n.aa].node)if(f<0)n.Zd=Iw(c[n.aa]),f=c[n.aa][c[n.aa].length-1];else for(q=c[n.aa].length-1;q>=0;--q)if(c[n.aa][q]<=f){n.Zd=Iw(c[n.aa].slice(0,q+1));f=c[n.aa][q];break}for(c= e=0;c=0||t>=0)a:if(v=(p<0||t=p.length||p[u.aa].node==null)){p=t.ea;t.ea="";if(/^ +$/.test(p)&&(t=v?u.ea.charCodeAt(0):u.ea.charCodeAt(u.ea.length-1),3584<=t&&t<=3711||12288<=t&&t<=12351||12352<=t&& t<=12543||12784<=t&&t<=12799||19968<=t&&t<=40959||65280<=t&&t<=65519))break a;u.ea=v?p+u.ea:u.ea+p}}}f=n;g=a.g;h=d;m=a.o;n=b.Yf;q=a.A;u=[];for(p=0;p=m.length);++p)if(t=h.parts[p],t.Zd&&!(t.aa<0)&&g[t.aa].node&&t.ea)if(e==q[t.aa]||e in t.Zd&&(!(e+1 in t.Zd)||e+1!=q[t.aa])){if(m[e]&&m[e].node){v=jA(m[e].node);u.push(v);for(var w=m[e].node,y=n[q[t.aa]]-n[e],B=v,H=g[t.aa].node.parentNode,I=B;H&&y--;)I=H.cloneNode(!1),I.appendChild(B),H=H.parentNode,B=I;w.appendChild(I);w=g[t.aa].node; g[t.aa].Ae?g[t.aa].fh||v.appendChild(w):(w=g[t.aa].node.cloneNode(!1),w.id&&(w.id=""),v.appendChild(w));g[t.aa].cb(t.ea,w)}}else++e,--p;g=u;q=a.g;u=d;h=a.C;if(u.Bh)h=u.Bh;else{n=q.length;m=-1;for(p=0;p=0&&q[t]&&q[t].node&&(m=Math.max(m,t),n=Math.min(n,t));for(q="";n<=m;++n)h[n]&&(q+=h[n]);h=q}n=a;q=g;u=h;if(n.B){if(n.B.g.Xb!=3){g=n.P;h=g.push;m=n.B;d=d.Df;d=m.j[++m.B]={id:m.B.toString(),jj:n,text:u,Mo:d||u,ea:f,al:m.C,cl:m.G,Ka:q};for(f=0;fa[d];)d++;(d>=b.length||e!=a[d])&&!f.firstChild&&(_.Od(f),c[e].node=null)}}}}; nA.prototype.restore=function(){if(this.I)if(this.I=!1,this.B&&fA(this.B),this.P=[],tA(this.o),this.g.length==1&&this.g[0].Wf)this.g[0].cb(this.C[0],this.g[0].node);else{for(var a=0,b=0;bthis.A[a];){var d=a++;this.g[d].node&&(vA(this.g[d].node),this.g[d].node=null)}if(a=0&&!a[b].node;--b);a.length=b+1;return a.length},jA=function(a){a=a.ownerDocument?a.ownerDocument.createElement("font"):_.Jd(document,"font");mA(a);a.style.verticalAlign="inherit";_.yi(_.bj(Sv,2))&&(a.dir="auto");return a},wA=function(a){for(var b=new Set,c=0;c1?a.h=1:b<.001?a.h=.001:b&&(a.h=b)}; DA.prototype.add=function(a){AA.prototype.add.call(this,a);this.j&&EA(this)};var EA=function(a){a.j=!1;window.setTimeout(a.o,Math.min(a.l,5E3))};DA.prototype.A=function(){var a=(new Date).getTime();do{var b=this.step(),c=95*this.h+5;var d=(new Date).getTime()-a}while(b&&d0? new b(a.Ka,a.Ub.join(""),a.Ch,a.textLength,a.size):null},SA=function(a,b){if(!a.j)return a.Wc=RA(b,a.C),!0;if(!b.continuous&&b.Ka.length>0)return a.Wc=RA(b,a.C),!0;b.continuous=a.j.uh;a:{var c=a.j;var d=a.T;if(b.size>b.Ph||b.textLength>b.Sh)c=!1;else{var e=c.size,f=c.text.length;if(b.Ka.length!=0&&(e+=b.Ka.length==1?b.size+d+d:b.size+d,f+=b.textLength,e>b.Ph||f>b.Sh)){c=!1;break a}b.size=e;b.textLength=f;b.Ka.push(c.node);b.Ch.push(c.text);d=b.Ka.length-1;d==0?b.Ub.push(c.Ye):(d==1&&(b.Ub[0]=""+ b.Ub[0]+""),b.Ub.push(""),b.Ub.push(c.Ye),b.Ub.push(""));c=!0}}if(c)return a.j=null,!1;a.Wc=RA(b,a.C);return!0},TA=function(a,b,c){var d=rA(b,c);d&&_.Sc(Bt(d))&&a.I.push({node:b,Xi:c,text:d})}; PA.prototype.h=function(a,b){var c=this;if(this.j&&SA(this,b))return MA;if(!this.g){this.K=!!this.A.length;if(!this.A.length&&(a=this.I.shift()))return this.j={uh:!1,node:lA(a.node,a.Xi),text:a.text,Ye:Dt(a.text),size:this.B?_.Pb(a.text).length:a.text.length},b.continuous=!1,SA(this,b),MA;a=this.A.shift()||this.F.shift();if(!a)return this.j=null,SA(this,b),MA;this.o=[a.fl];this.g=new Dx(a.root)}this.g.next();if(this.g.done)return this.g=null,b.continuous=!1,this.h;a=this.g.node();var d=this.g.g.g; if(d==-1)return UA(this),VA(a)||(b.continuous=!1),this.h;WA(this,a);d=d==1;var e=!!a&&(a.nodeType==3&&typeof a.nodeValue==="string"||a.tagName=="TITLE"&&typeof a.value==="string"||a.tagName=="TEXTAREA"&&uy(a,"translate")||a.tagName=="INPUT"&&(xx[a.type]||uy(a,"translate")));if((e||d)&&this.K&&!XA(a))return OA(this,a,YA(this),!0),Bx(this.g.g),UA(this),this.h;if(d&&YA(this)&&(this.ca&&TA(this,a,"title"),TA(this,a,"alt"),TA(this,a,"placeholder"),TA(this,a,"aria-label"),TA(this,a,"aria-placeholder"), TA(this,a,"aria-roledescription"),TA(this,a,"aria-valuetext"),Ex(this.g)))for(var f=a.firstChild;f;){if(f.nodeType==3){var g=f.nodeValue.split("\n");if(g.length>2||g.length==2&&_.Sc(g[0])!=""&&_.Sc(g[1])!=""){f.nodeValue=g[0];for(var h=1;h=55296&&h<=56319||h>=56320&&h<=57343?6:9:1;h=a.h>=b;hB[g]?(a.o=f,a.B=a.h,h=h||e>c):g==" "&&(a.j=f,a.A=a.h,h=h||e>c);if(h)return a.o>=0?(d=a.l.substring(a.g,a.o+1),a.h-=a.B,a.g=a.o+1,a.o>=a.j?(a.j=-1,a.A=0):a.A-=a.B,a.o=-1,a.B=0):a.j>=0?(d=a.l.substring(a.g, a.j+1),a.h-=a.A,a.g=a.j+1,a.j=-1,a.A=0):(d=a.l.substring(a.g,f+1),a.h=0,a.g=f+1,a.o=a.j=-1,a.A=a.B=0),a.C=f+1,d}a.g1&&console.warn("there are multiple candidates in the response, returning text from the first one.");a="";b=!1;c=[];var e,f,g,h;d=_.A((h=(e=this.candidates)==null?void 0:(f=e[0])==null?void 0:(g=f.content)==null?void 0:g.parts)!= null?h:[]);for(e=d.next();!e.done;e=d.next()){e=e.value;f=_.A(Object.entries(e));for(g=f.next();!g.done;g=f.next())h=_.A(g.value),g=h.next().value,h=h.next().value,g==="text"||g==="thought"||g==="thoughtSignature"||h===null&&h===void 0||c.push(g);typeof e.text!=="string"||typeof e.thought==="boolean"&&e.thought||(b=!0,a+=e.text)}c.length>0&&console.warn("there are non-text parts "+c+" in the response, returning concatenation of all text parts. Please refer to the non text parts for a full response from model."); return b?a:void 0}}},data:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d;if(((a=this.candidates)==null?void 0:(b=a[0])==null?void 0:(c=b.content)==null?void 0:(d=c.parts)==null?void 0:d.length)!==0){this.candidates&&this.candidates.length>1&&console.warn("there are multiple candidates in the response, returning data from the first one.");a="";b=[];var e,f,g,h;c=_.A((h=(e=this.candidates)==null?void 0:(f=e[0])==null?void 0:(g=f.content)==null?void 0:g.parts)!=null?h:[]);for(e=c.next();!e.done;e= c.next()){e=e.value;f=_.A(Object.entries(e));for(g=f.next();!g.done;g=f.next())h=_.A(g.value),g=h.next().value,h=h.next().value,g==="inlineData"||h===null&&h===void 0||b.push(g);e.inlineData&&typeof e.inlineData.data==="string"&&(a+=atob(e.inlineData.data))}b.length>0&&console.warn("there are non-data parts "+b+" in the response, returning concatenation of all data parts. Please refer to the non data parts for a full response from model.");return a.length>0?btoa(a):void 0}}},functionCalls:{configurable:!0, enumerable:!0,get:function(){var a,b,c,d;if(((a=this.candidates)==null?void 0:(b=a[0])==null?void 0:(c=b.content)==null?void 0:(d=c.parts)==null?void 0:d.length)!==0){this.candidates&&this.candidates.length>1&&console.warn("there are multiple candidates in the response, returning function calls from the first one.");var e,f,g,h;a=(e=this.candidates)==null?void 0:(f=e[0])==null?void 0:(g=f.content)==null?void 0:(h=g.parts)==null?void 0:h.filter(function(m){return m.functionCall}).map(function(m){return m.functionCall}).filter(function(m){return m!== void 0});if((a==null?void 0:a.length)!==0)return a}}},executableCode:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d;if(((a=this.candidates)==null?void 0:(b=a[0])==null?void 0:(c=b.content)==null?void 0:(d=c.parts)==null?void 0:d.length)!==0){this.candidates&&this.candidates.length>1&&console.warn("there are multiple candidates in the response, returning executable code from the first one.");var e,f,g,h;a=(e=this.candidates)==null?void 0:(f=e[0])==null?void 0:(g=f.content)==null?void 0: (h=g.parts)==null?void 0:h.filter(function(n){return n.executableCode}).map(function(n){return n.executableCode}).filter(function(n){return n!==void 0});if((a==null?void 0:a.length)!==0){var m;return a==null?void 0:(m=a[0])==null?void 0:m.code}}}},codeExecutionResult:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d;if(((a=this.candidates)==null?void 0:(b=a[0])==null?void 0:(c=b.content)==null?void 0:(d=c.parts)==null?void 0:d.length)!==0){this.candidates&&this.candidates.length>1&&console.warn("there are multiple candidates in the response, returning code execution result from the first one."); var e,f,g,h;a=(e=this.candidates)==null?void 0:(f=e[0])==null?void 0:(g=f.content)==null?void 0:(h=g.parts)==null?void 0:h.filter(function(n){return n.codeExecutionResult}).map(function(n){return n.codeExecutionResult}).filter(function(n){return n!==void 0});if((a==null?void 0:a.length)!==0){var m;return a==null?void 0:(m=a[0])==null?void 0:m.output}}}}});var mB=function(){},nB=function(){},oB=function(){},pB=function(){},qB=function(){},rB=function(){},sB=function(){}; sB.prototype._fromAPIResponse=function(a){var b=a.apiResponse;var c=new sB;if(a._isVertexAI){a={};var d=O(b,["name"]);d!=null&&M(a,["name"],d);d=O(b,["metadata"]);d!=null&&M(a,["metadata"],d);d=O(b,["done"]);d!=null&&M(a,["done"],d);d=O(b,["error"]);d!=null&&M(a,["error"],d);b=O(b,["response"]);b!=null&&M(a,["response"],io(b));b=a}else a={},d=O(b,["name"]),d!=null&&M(a,["name"],d),d=O(b,["metadata"]),d!=null&&M(a,["metadata"],d),d=O(b,["done"]),d!=null&&M(a,["done"],d),d=O(b,["error"]),d!=null&&M(a, ["error"],d),b=O(b,["response","generateVideoResponse"]),b!=null&&M(a,["response"],ho(b)),b=a;Object.assign(c,b);return c};var tB=function(){},uB=function(){},vB=function(){},wB=function(){},xB=function(){},yB=function(){},zB=function(){},AB=function(){},BB=function(){},CB=function(){};var DB=function(a,b,c,d){this.g=[];this.l={};this.G=b;this.init(a,c,d)};DB.prototype.init=function(a,b,c){this.j=a;this.g=b[this.j]||[];this.F=b==null?void 0:b.sdkHttpResponse;this.h=0;a={config:{}};c&&Object.keys(c).length!==0?typeof c==="object"?a=Object.assign({},c):a=c:a={config:{}};a.config&&(a.config.pageToken=b.nextPageToken);this.l=a;var d,e;this.B=(e=(d=a.config)==null?void 0:d.pageSize)!=null?e:this.g.length}; DB.prototype[Symbol.asyncIterator]=function(){var a=this;return{next:function(){var b;return _.J(function(c){if(c.h==1)return a.h>=a.C?EB(a)?c.g(a.nextPage(),2):c.return({value:void 0,done:!0}):c.H(2);b=a.g[a.h];a.h+=1;return c.return({value:b,done:!1})})},return:function(){return _.J(function(b){return b.return({value:void 0,done:!0})})}}};DB.prototype.nextPage=function(){var a=this,b;return _.J(function(c){if(c.h==1){if(!EB(a))throw Error("pc");return c.g(a.G(a.o),2)}b=c.j;a.init(a.j,b,a.l);return c.return(a.A)})}; var EB=function(a){var b;return((b=a.o.config)==null?void 0:b.pageToken)!==void 0?!0:!1}; _.$b.Object.defineProperties(DB.prototype,{A:{configurable:!0,enumerable:!0,get:function(){return this.g}},name:{configurable:!0,enumerable:!0,get:function(){return this.j}},pageSize:{configurable:!0,enumerable:!0,get:function(){return this.B}},sdkHttpResponse:{configurable:!0,enumerable:!0,get:function(){return this.F}},o:{configurable:!0,enumerable:!0,get:function(){return this.l}},C:{configurable:!0,enumerable:!0,get:function(){return this.g.length}}});var IB=function(a){var b=this;b.g=a;b.list=function(c){c=c===void 0?{}:c;var d,e;return _.J(function(f){return f.h==1?(d=DB,e="batchJobs",f.g(FB(b,c),2)):f.return(new d(e,function(g){return FB(b,g)},f.j,c))})};b.create=function(c){return _.J(function(d){if(P(b.g)){var e=c.src,f=c.config;f=f?Object.assign({},f):{};var g=Date.now().toString();f.displayName||(f.displayName="genaiBatchJob_"+g);if(f.dest===void 0){var h=typeof e==="string"?e.startsWith("gs://")?e:void 0:!Array.isArray(e)&&e.gcsUri&&e.gcsUri.length> 0?e.gcsUri[0]:void 0;e=typeof e==="string"?e.startsWith("bq://")?e:void 0:Array.isArray(e)?void 0:e.bigqueryUri;if(h)f.dest=h.endsWith(".jsonl")?h.slice(0,-6)+"/dest":h+"_dest_"+g;else if(e)f.dest=e+"_dest_"+g;else throw Error("rc");}c.config=f}return d.return(GB(b,c))})};b.h=function(c){return _.J(function(d){console.warn("batches.createEmbeddings() is experimental and may change without notice.");if(P(b.g))throw Error("qc");return d.return(HB(b,c))})};return b};_.z(IB,kB); var GB=function(a,b){var c,d,e,f,g,h,m,n,q;return _.J(function(u){d="";e={};if(P(a.g))return f=Vo(a.g,b),d=L("batchPredictionJobs",f._url),e=f._query,delete f._url,delete f._query,c=a.g.request({path:d,S:e,body:JSON.stringify(f),O:"POST",httpOptions:(g=b.config)==null?void 0:g.httpOptions,abortSignal:(h=b.config)==null?void 0:h.abortSignal}).then(function(p){return R(p)}),u.return(c.then(function(p){return Oo(p)}));m=Uo(a.g,b);d=L("{model}:batchGenerateContent",m._url);e=m._query;delete m._url;delete m._query; c=a.g.request({path:d,S:e,body:JSON.stringify(m),O:"POST",httpOptions:(n=b.config)==null?void 0:n.httpOptions,abortSignal:(q=b.config)==null?void 0:q.abortSignal}).then(function(p){return R(p)});return u.return(c.then(function(p){return No(p)}))})},HB=function(a,b){var c,d,e,f,g,h;return _.J(function(m){d="";e={};if(P(a.g))throw Error("sc");f=Xo(a.g,b);d=L("{model}:asyncBatchEmbedContent",f._url);e=f._query;delete f._url;delete f._query;c=a.g.request({path:d,S:e,body:JSON.stringify(f),O:"POST",httpOptions:(g= b.config)==null?void 0:g.httpOptions,abortSignal:(h=b.config)==null?void 0:h.abortSignal}).then(function(n){return R(n)});return m.return(c.then(function(n){return No(n)}))})}; IB.prototype.get=function(a){var b=this,c,d,e,f,g,h,m,n,q;return _.J(function(u){d="";e={};if(P(b.g))return f=fp(b.g,a),d=L("batchPredictionJobs/{name}",f._url),e=f._query,delete f._url,delete f._query,c=b.g.request({path:d,S:e,body:JSON.stringify(f),O:"GET",httpOptions:(g=a.config)==null?void 0:g.httpOptions,abortSignal:(h=a.config)==null?void 0:h.abortSignal}).then(function(p){return R(p)}),u.return(c.then(function(p){return Oo(p)}));m=ep(b.g,a);d=L("batches/{name}",m._url);e=m._query;delete m._url; delete m._query;c=b.g.request({path:d,S:e,body:JSON.stringify(m),O:"GET",httpOptions:(n=a.config)==null?void 0:n.httpOptions,abortSignal:(q=a.config)==null?void 0:q.abortSignal}).then(function(p){return R(p)});return u.return(c.then(function(p){return No(p)}))})}; IB.prototype.cancel=function(a){var b=this,c,d,e,f,g,h,m,n;return _.J(function(q){c="";d={};if(P(b.g)){var u=b.g,p={},t=O(a,["name"]);t!=null&&M(p,["_url","name"],Io(u,t));h=p;c=L("batchPredictionJobs/{name}:cancel",h._url);d=h._query;delete h._url;delete h._query;return q.g(b.g.request({path:c,S:d,body:JSON.stringify(h),O:"POST",httpOptions:(m=a.config)==null?void 0:m.httpOptions,abortSignal:(n=a.config)==null?void 0:n.abortSignal}),0)}u=b.g;p={};t=O(a,["name"]);t!=null&&M(p,["_url","name"],Io(u, t));e=p;c=L("batches/{name}:cancel",e._url);d=e._query;delete e._url;delete e._query;return q.g(b.g.request({path:c,S:d,body:JSON.stringify(e),O:"POST",httpOptions:(f=a.config)==null?void 0:f.httpOptions,abortSignal:(g=a.config)==null?void 0:g.abortSignal}),0)})}; var FB=function(a,b){var c,d,e,f,g,h,m,n,q;return _.J(function(u){d="";e={};if(P(a.g))return f=jp(b),d=L("batchPredictionJobs",f._url),e=f._query,delete f._url,delete f._query,c=a.g.request({path:d,S:e,body:JSON.stringify(f),O:"GET",httpOptions:(g=b.config)==null?void 0:g.httpOptions,abortSignal:(h=b.config)==null?void 0:h.abortSignal}).then(function(p){return R(p).then(function(t){t.sdkHttpResponse={headers:p.headers};return t})}),u.return(c.then(function(p){p=lp(p);var t=new CB;Object.assign(t, p);return t}));m=ip(b);d=L("batches",m._url);e=m._query;delete m._url;delete m._query;c=a.g.request({path:d,S:e,body:JSON.stringify(m),O:"GET",httpOptions:(n=b.config)==null?void 0:n.httpOptions,abortSignal:(q=b.config)==null?void 0:q.abortSignal}).then(function(p){return R(p).then(function(t){t.sdkHttpResponse={headers:p.headers};return t})});return u.return(c.then(function(p){p=kp(p);var t=new CB;Object.assign(t,p);return t}))})}; IB.prototype.delete=function(a){var b=this,c,d,e,f,g,h,m,n,q;return _.J(function(u){d="";e={};if(P(b.g))return f=Zo(b.g,a),d=L("batchPredictionJobs/{name}",f._url),e=f._query,delete f._url,delete f._query,c=b.g.request({path:d,S:e,body:JSON.stringify(f),O:"DELETE",httpOptions:(g=a.config)==null?void 0:g.httpOptions,abortSignal:(h=a.config)==null?void 0:h.abortSignal}).then(function(p){return R(p).then(function(t){t.sdkHttpResponse={headers:p.headers};return t})}),u.return(c.then(function(p){var t= {},v=O(p,["sdkHttpResponse"]);v!=null&&M(t,["sdkHttpResponse"],v);v=O(p,["name"]);v!=null&&M(t,["name"],v);v=O(p,["done"]);v!=null&&M(t,["done"],v);p=O(p,["error"]);p!=null&&M(t,["error"],p);return t}));m=Yo(b.g,a);d=L("batches/{name}",m._url);e=m._query;delete m._url;delete m._query;c=b.g.request({path:d,S:e,body:JSON.stringify(m),O:"DELETE",httpOptions:(n=a.config)==null?void 0:n.httpOptions,abortSignal:(q=a.config)==null?void 0:q.abortSignal}).then(function(p){return R(p).then(function(t){t.sdkHttpResponse= {headers:p.headers};return t})});return u.return(c.then(function(p){var t={},v=O(p,["sdkHttpResponse"]);v!=null&&M(t,["sdkHttpResponse"],v);v=O(p,["name"]);v!=null&&M(t,["name"],v);v=O(p,["done"]);v!=null&&M(t,["done"],v);p=O(p,["error"]);p!=null&&M(t,["error"],p);return t}))})};var KB=function(a){var b=this;b.g=a;b.list=function(c){c=c===void 0?{}:c;var d,e;return _.J(function(f){return f.h==1?(d=DB,e="cachedContents",f.g(JB(b,c),2)):f.return(new d(e,function(g){return JB(b,g)},f.j,c))})};return b};_.z(KB,kB); KB.prototype.create=function(a){var b=this,c,d,e,f,g,h,m,n,q;return _.J(function(u){d="";e={};if(P(b.g))return f=vp(b.g,a),d=L("cachedContents",f._url),e=f._query,delete f._url,delete f._query,c=b.g.request({path:d,S:e,body:JSON.stringify(f),O:"POST",httpOptions:(g=a.config)==null?void 0:g.httpOptions,abortSignal:(h=a.config)==null?void 0:h.abortSignal}).then(function(p){return R(p)}),u.return(c.then(function(p){return p}));m=up(b.g,a);d=L("cachedContents",m._url);e=m._query;delete m._url;delete m._query; c=b.g.request({path:d,S:e,body:JSON.stringify(m),O:"POST",httpOptions:(n=a.config)==null?void 0:n.httpOptions,abortSignal:(q=a.config)==null?void 0:q.abortSignal}).then(function(p){return R(p)});return u.return(c.then(function(p){return p}))})}; KB.prototype.get=function(a){var b=this,c,d,e,f,g,h,m,n,q;return _.J(function(u){d="";e={};if(P(b.g))return f=zp(b.g,a),d=L("{name}",f._url),e=f._query,delete f._url,delete f._query,c=b.g.request({path:d,S:e,body:JSON.stringify(f),O:"GET",httpOptions:(g=a.config)==null?void 0:g.httpOptions,abortSignal:(h=a.config)==null?void 0:h.abortSignal}).then(function(p){return R(p)}),u.return(c.then(function(p){return p}));m=yp(b.g,a);d=L("{name}",m._url);e=m._query;delete m._url;delete m._query;c=b.g.request({path:d, S:e,body:JSON.stringify(m),O:"GET",httpOptions:(n=a.config)==null?void 0:n.httpOptions,abortSignal:(q=a.config)==null?void 0:q.abortSignal}).then(function(p){return R(p)});return u.return(c.then(function(p){return p}))})}; KB.prototype.delete=function(a){var b=this,c,d,e,f,g,h,m,n,q;return _.J(function(u){d="";e={};if(P(b.g))return f=xp(b.g,a),d=L("{name}",f._url),e=f._query,delete f._url,delete f._query,c=b.g.request({path:d,S:e,body:JSON.stringify(f),O:"DELETE",httpOptions:(g=a.config)==null?void 0:g.httpOptions,abortSignal:(h=a.config)==null?void 0:h.abortSignal}).then(function(p){return R(p).then(function(t){t.sdkHttpResponse={headers:p.headers};return t})}),u.return(c.then(function(p){var t={};p=O(p,["sdkHttpResponse"]); p!=null&&M(t,["sdkHttpResponse"],p);p=new vB;Object.assign(p,t);return p}));m=wp(b.g,a);d=L("{name}",m._url);e=m._query;delete m._url;delete m._query;c=b.g.request({path:d,S:e,body:JSON.stringify(m),O:"DELETE",httpOptions:(n=a.config)==null?void 0:n.httpOptions,abortSignal:(q=a.config)==null?void 0:q.abortSignal}).then(function(p){return R(p).then(function(t){t.sdkHttpResponse={headers:p.headers};return t})});return u.return(c.then(function(p){var t={};p=O(p,["sdkHttpResponse"]);p!=null&&M(t,["sdkHttpResponse"], p);p=new vB;Object.assign(p,t);return p}))})}; KB.prototype.update=function(a){var b=this,c,d,e,f,g,h,m,n,q;return _.J(function(u){d="";e={};if(P(b.g))return f=Ip(b.g,a),d=L("{name}",f._url),e=f._query,delete f._url,delete f._query,c=b.g.request({path:d,S:e,body:JSON.stringify(f),O:"PATCH",httpOptions:(g=a.config)==null?void 0:g.httpOptions,abortSignal:(h=a.config)==null?void 0:h.abortSignal}).then(function(p){return R(p)}),u.return(c.then(function(p){return p}));m=Gp(b.g,a);d=L("{name}",m._url);e=m._query;delete m._url;delete m._query;c=b.g.request({path:d, S:e,body:JSON.stringify(m),O:"PATCH",httpOptions:(n=a.config)==null?void 0:n.httpOptions,abortSignal:(q=a.config)==null?void 0:q.abortSignal}).then(function(p){return R(p)});return u.return(c.then(function(p){return p}))})}; var JB=function(a,b){var c,d,e,f,g,h,m,n,q;return _.J(function(u){d="";e={};if(P(a.g))return f=Dp(b),d=L("cachedContents",f._url),e=f._query,delete f._url,delete f._query,c=a.g.request({path:d,S:e,body:JSON.stringify(f),O:"GET",httpOptions:(g=b.config)==null?void 0:g.httpOptions,abortSignal:(h=b.config)==null?void 0:h.abortSignal}).then(function(p){return R(p).then(function(t){t.sdkHttpResponse={headers:p.headers};return t})}),u.return(c.then(function(p){p=Fp(p);var t=new wB;Object.assign(t,p);return t})); m=Cp(b);d=L("cachedContents",m._url);e=m._query;delete m._url;delete m._query;c=a.g.request({path:d,S:e,body:JSON.stringify(m),O:"GET",httpOptions:(n=b.config)==null?void 0:n.httpOptions,abortSignal:(q=b.config)==null?void 0:q.abortSignal}).then(function(p){return R(p).then(function(t){t.sdkHttpResponse={headers:p.headers};return t})});return u.return(c.then(function(p){p=Ep(p);var t=new wB;Object.assign(t,p);return t}))})};var Tp=function(a){var b=Error.call(this,a.message);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.name="ApiError";this.status=a.status;Object.setPrototypeOf(this,Tp.prototype)};_.z(Tp,Error);var MB=function(a){var b=this;b.g=a;b.list=function(c){c=c===void 0?{}:c;var d,e;return _.J(function(f){return f.h==1?(d=DB,e="files",f.g(LB(b,c),2)):f.return(new d(e,function(g){return LB(b,g)},f.j,c))})};return b};_.z(MB,kB);MB.prototype.upload=function(a){var b=this;return _.J(function(c){if(P(b.g))throw Error("Bc");return c.return(NB(b.g,a.file,a.config).then(function(d){return d}))})};MB.prototype.download=function(a){var b=this;return _.J(function(c){return c.g(OB(b.g,a),0)})}; MB.prototype.h=function(a){var b=this;return _.J(function(c){return c.return(PB(b,a))})}; var LB=function(a,b){var c,d,e,f,g,h;return _.J(function(m){d="";e={};if(P(a.g))throw Error("sc");f=Mp(b);d=L("files",f._url);e=f._query;delete f._url;delete f._query;c=a.g.request({path:d,S:e,body:JSON.stringify(f),O:"GET",httpOptions:(g=b.config)==null?void 0:g.httpOptions,abortSignal:(h=b.config)==null?void 0:h.abortSignal}).then(function(n){return R(n).then(function(q){q.sdkHttpResponse={headers:n.headers};return q})});return m.return(c.then(function(n){n=Np(n);var q=new zB;Object.assign(q,n); return q}))})};MB.prototype.get=function(a){var b=this,c,d,e,f,g,h;return _.J(function(m){d="";e={};if(P(b.g))throw Error("sc");f=Kp(a);d=L("files/{file}",f._url);e=f._query;delete f._url;delete f._query;c=b.g.request({path:d,S:e,body:JSON.stringify(f),O:"GET",httpOptions:(g=a.config)==null?void 0:g.httpOptions,abortSignal:(h=a.config)==null?void 0:h.abortSignal}).then(function(n){return R(n)});return m.return(c.then(function(n){return n}))})}; MB.prototype.delete=function(a){var b=this,c,d,e,f,g,h;return _.J(function(m){d="";e={};if(P(b.g))throw Error("sc");f=Jp(a);d=L("files/{file}",f._url);e=f._query;delete f._url;delete f._query;c=b.g.request({path:d,S:e,body:JSON.stringify(f),O:"DELETE",httpOptions:(g=a.config)==null?void 0:g.httpOptions,abortSignal:(h=a.config)==null?void 0:h.abortSignal}).then(function(n){return R(n).then(function(q){q.sdkHttpResponse={headers:n.headers};return q})});return m.return(c.then(function(n){var q={};n= O(n,["sdkHttpResponse"]);n!=null&&M(q,["sdkHttpResponse"],n);n=new AB;Object.assign(n,q);return n}))})}; var PB=function(a,b){var c,d,e,f,g,h;return _.J(function(m){d="";e={};if(P(a.g))throw Error("sc");f=Lp(b);d=L("files:register",f._url);e=f._query;delete f._url;delete f._query;c=a.g.request({path:d,S:e,body:JSON.stringify(f),O:"POST",httpOptions:(g=b.config)==null?void 0:g.httpOptions,abortSignal:(h=b.config)==null?void 0:h.abortSignal}).then(function(n){return R(n)});return m.return(c.then(function(n){n=Op(n);var q=new BB;Object.assign(q,n);return q}))})};/* MIT License Copyright (c) Sindre Sorhus (https://sindresorhus.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ var QB=function(){var J={},K=Object.prototype.toString,M=new Set("network error;Failed to fetch;NetworkError when attempting to fetch resource.;The Internet connection appears to be offline.;Network request failed;fetch failed;terminated; A network error occurred.;Network connection lost".split(";"));J.isNetworkError=function(h){if(!h||K.call(h)!=="[object Error]"||h.name!=="TypeError"||typeof h.message!=="string")return!1;var B=h.message,t=h.stack;return B==="Load failed"?t===void 0||"__sentry_captured__"in h:B.startsWith("error sending request for url")?!0:M.has(B)};return J}.call(void 0).isNetworkError;var RB=function(J,K,M,h){function B(b){if(typeof b==="number"){if(b<0)throw new TypeError("Expected `retries` to be a non-negative number.");if(Number.isNaN(b))throw new TypeError("Expected `retries` to be a valid number or Infinity, got NaN.");}else if(b!==void 0)throw new TypeError("Expected `retries` to be a number or Infinity.");}function t(b,a,f){var e=f===void 0?{}:f;f=e.min===void 0?0:e.min;e=e.allowInfinity===void 0?!1:e.allowInfinity;if(a!==void 0){if(typeof a!=="number"||Number.isNaN(a))throw new TypeError("Expected `"+ b+"` to be a number"+(e?" or Infinity":"")+".");if(!e&&!Number.isFinite(a))throw new TypeError("Expected `"+b+"` to be a finite number.");if(a0)){c.jumpTo(7);break}return c.yield(k(new Promise(function(H,X){var O=function(){clearTimeout(Q);var I;(I=d.signal)==null||I.removeEventListener("abort",O);X(d.signal.reason)},Q=setTimeout(function(){var I;(I=d.signal)==null||I.removeEventListener("abort",O);H()},z);if(d.unref){var R,S;(S=(R=Q).unref)==null||S.call(R)}var T; (T=d.signal)==null||T.addEventListener("abort",O,{once:!0})})),8);case 8:l(c.getYieldResultJsc());case 7:return(G=d.signal)==null||G.throwIfAborted(),c.return(!0);case 2:c.enterFinallyBlock(),k(),c.leaveFinallyBlock(0)}})}function U(b,a){a=a===void 0?{}:a;var f,e,C,d,n,p,D,u,k,l,g,v,E,w,q,x,m,r,F,y,z,A,G;return K(function(c){switch(c.getNextAddressJsc()){case 1:d=typeof AsyncContext==="object"&&((f=AsyncContext.Variable)==null?void 0:(C=(e=f).\u1d43\u1d9cstart)==null?void 0:C.call(e))||function(){return function(H){return function(){return H}}}; n=d();p=d(!0);c.setFinallyBlock(2);a=Object.assign({},a);B(a.retries);if(Object.hasOwn(a,"forever"))throw Error("The `forever` option is no longer supported. For many use-cases, you can set `retries: Infinity` instead.");(D=a).retries!=null||(D.retries=10);(u=a).factor!=null||(u.factor=2);(k=a).minTimeout!=null||(k.minTimeout=1E3);(l=a).maxTimeout!=null||(l.maxTimeout=Number.POSITIVE_INFINITY);(g=a).maxRetryTime!=null||(g.maxRetryTime=Number.POSITIVE_INFINITY);(v=a).randomize!=null||(v.randomize= !1);(E=a).onFailedAttempt!=null||(E.onFailedAttempt=function(){});(w=a).shouldRetry!=null||(w.shouldRetry=function(){return!0});(q=a).shouldConsumeRetry!=null||(q.shouldConsumeRetry=function(){return!0});t("factor",a.factor,{min:0,allowInfinity:!1});t("minTimeout",a.minTimeout,{min:0,allowInfinity:!1});t("maxTimeout",a.maxTimeout,{min:0,allowInfinity:!0});t("maxRetryTime",a.maxRetryTime,{min:0,allowInfinity:!0});a.factor>0||(a.factor=1);(x=a.signal)==null||x.throwIfAborted();r=m=0;F=performance.now(); case 4:if(!(Number.isFinite(a.retries)?r<=a.retries:1)){c.jumpTo(6);break}m++;c.setCatchFinallyBlocks(7);y=void 0;(y=a.signal)==null||y.throwIfAborted();return c.yield(n(b(m)),9);case 9:return z=p(c.getYieldResultJsc()),A=void 0,(A=a.signal)==null||A.throwIfAborted(),c.return(z);case 7:return G=c.enterCatchBlock(),p(),c.yield(n(W({error:G,attemptNumber:m,retriesConsumed:r,startTime:F,options:a})),10);case 10:p(c.getYieldResultJsc())&&r++;c.jumpTo(4);break;case 6:throw Error("Retry attempts exhausted without throwing an error."); case 2:c.enterFinallyBlock(),n(),c.leaveFinallyBlock(0)}})}var L={},N=function(b){var a=Error.call(this);this.message=a.message;"stack"in a&&(this.stack=a.stack);b instanceof Error?(this.originalError=b,b=b.message):(this.originalError=Error(b),this.originalError.stack=this.stack);this.name="AbortError";this.message=b};M(N,Error);L.AbortError=N;L.pRetry=U;L.makeRetriable=function(b,a){return function(){var f=h.apply(0,arguments),e=this;return U(function(){return b.apply(e,f)},a)}};return L}.call(void 0, QB,_.J,_.z,_.sc),SB=RB.AbortError,TB=RB.pRetry;var UB=[408,429,500,502,503,504],XB=function(a){this.R=Object.assign({},a);var b;this.g=(b=a.httpOptions)==null?void 0:b.baseUrl;this.R.mc&&(this.R.Qa&&this.R.location?this.R.apiKey=void 0:this.R.apiKey&&(this.R.Qa=void 0,this.R.location=void 0));b={};if(this.R.mc){this.R.location||this.R.apiKey||this.g||(this.R.location="global");if(!(this.R.Qa&&this.R.location||this.R.apiKey||this.g))throw Error("Cc");var c=a.Qa&&a.location||!!a.apiKey;this.g&&!c?(b.baseUrl=this.g,this.R.Qa=void 0,this.R.location= void 0):this.R.apiKey||this.R.location==="global"?b.baseUrl="https://aiplatform.googleapis.com/":this.R.Qa&&this.R.location&&this.R.location==="us"?b.baseUrl="https://aiplatform."+this.R.location+".rep.googleapis.com/":this.R.Qa&&this.R.location&&(b.baseUrl="https://"+this.R.location+"-aiplatform.googleapis.com/");var d;b.apiVersion=(d=this.R.apiVersion)!=null?d:"v1beta1"}else this.R.apiKey||console.warn("API key should be set when using the Gemini API."),b.apiVersion=(c=this.R.apiVersion)!=null? c:"v1beta",b.baseUrl="https://generativelanguage.googleapis.com/";b.headers=VB(this);this.R.httpOptions=b;a.httpOptions&&(this.R.httpOptions=WB(b,a.httpOptions))},P=function(a){var b;return(b=a.R.mc)!=null?b:!1},ZB=function(a){var b;return _.J(function(c){return c.h==1?(b=new Headers,c.g(YB(a.R.auth,b),2)):c.return(b)})},$B=function(a,b,c,d){if(!c||c.baseUrl===void 0||c.apiVersion===void 0)throw Error("Fc");var e=[c.baseUrl.endsWith("/")?c.baseUrl.slice(0,-1):c.baseUrl];c.apiVersion&&c.apiVersion!== ""&&e.push(c.apiVersion);c=[e.join("/")];d&&c.push("projects/"+a.R.Qa+"/locations/"+a.R.location);b!==""&&c.push(b);return new URL(c.join("/"))},aC=function(a,b,c){return c.baseUrl&&c.baseUrlResourceScope==="COLLECTION"||a.R.apiKey||!a.R.mc||b.path.startsWith("projects/")||b.O==="GET"&&b.path.startsWith("publishers/google/models")?!1:!0}; XB.prototype.request=function(a){var b=this,c,d,e,f,g,h,m,n,q,u,p,t;return _.J(function(v){if(v.h==1){c=b.R.httpOptions;a.httpOptions&&(c=WB(b.R.httpOptions,a.httpOptions));d=aC(b,a,c);e=$B(b,a.path,c,d);if(a.S)for(f=_.A(Object.entries(a.S)),g=f.next();!g.done;g=f.next())h=g.value,m=_.A(h),n=m.next().value,q=m.next().value,u=n,p=q,e.searchParams.append(u,String(p));t={};if(a.O==="GET"){if(a.body&&a.body!=="{}")throw Error("Gc");}else t.body=a.body;return v.g(bC(b,t,c,a.abortSignal),2)}t=v.j;return v.return(cC(b, e,t,a.O))})}; var WB=function(a,b){a=JSON.parse(JSON.stringify(a));b=_.A(Object.entries(b));for(var c=b.next();!c.done;c=b.next()){var d=_.A(c.value);c=d.next().value;d=d.next().value;typeof d==="object"?a[c]=Object.assign({},a[c],d):d!==void 0&&(a[c]=d)}return a},eC=function(a,b){var c,d,e,f;return _.J(function(g){if(g.h==1)return c=a.R.httpOptions,b.httpOptions&&(c=WB(a.R.httpOptions,b.httpOptions)),d=aC(a,b,c),e=$B(a,b.path,c,d),e.searchParams.has("alt")&&e.searchParams.get("alt")==="sse"||e.searchParams.set("alt","sse"), f={},f.body=b.body,g.g(bC(a,f,c,b.abortSignal),2);f=g.j;return g.return(dC(a,e,f,b.O))})},bC=function(a,b,c,d){var e,f,g,h,m;return _.J(function(n){if(n.h==1){if(c&&c.timeout||d)e=new AbortController,f=e.signal,c.timeout&&((g=c)==null?void 0:g.timeout)>0&&(h=setTimeout(function(){return e.abort()},c.timeout))&&typeof h.unref==="function"&&h.unref(),d&&d.addEventListener("abort",function(){e.abort()}),b.signal=f;c&&c.extraBody!==null&&Vp(b,c.extraBody);m=b;return n.g(fC(a,c),2)}m.headers=n.j;return n.return(b)})}, cC=function(a,b,c,d){return _.J(function(e){return e.return(gC(a,b.toString(),Object.assign({},c,{method:d})).then(function(f){return _.J(function(g){return g.h==1?g.g(Up(f),2):g.return(new aq(f))})}).catch(function(f){if(f instanceof Error)throw f;throw Error(JSON.stringify(f));}))})},dC=function(a,b,c,d){return _.J(function(e){return e.return(gC(a,b.toString(),Object.assign({},c,{method:d})).then(function(f){return _.J(function(g){return g.h==1?g.g(Up(f),2):g.return(hC(f))})}).catch(function(f){if(f instanceof Error)throw f;throw Error(JSON.stringify(f));}))})},hC=function(a){return function(){return new uq(function c(){var d,e,f,g,h,m,n,q,u,p,t,v,w,y,B,H,I,N,K,X,F,ea,Y,ya,Q,lb,Wa,Xb,ra,Gb,Yb,Hb,vc;return vq(c,function(S){switch(S.h){case 1:S.C(2);f=(d=a)==null?void 0:(e=d.body)==null?void 0:e.getReader();g=new TextDecoder("utf-8");if(!f)throw Error("Hc");S.C(4);h="";m="data:";n=["\n\n","\r\r","\r\n\r\n"];case 6:return S.g(new Bq(2,f.read()),9);case 9:q=S.j;u=q.done;p=q.value;if(u){if(h.trim().length>0)throw Error("Ic"); S.H(4);break}t=g.decode(p,{stream:!0});try{if(v=JSON.parse(t),"error"in v&&(w=JSON.parse(JSON.stringify(v.error)),y=w.status,B=w.code,H="got status: "+y+". "+JSON.stringify(v),B>=400&&B<600))throw I=new Tp({message:H,status:B}),I;}catch(Yf){if(N=Yf,N.name==="ApiError")throw Yf;}h+=t;K=-1;X=0;case 10:K=-1;X=0;F=_.A(n);for(ea=F.next();!ea.done;ea=F.next())Y=ea.value,ya=h.indexOf(Y),ya!==-1&&(K===-1||ya0&&c.append("X-Server-Timeout",String(Math.ceil(b.timeout/1E3)))}return u.g(YB(a.R.auth,c),2)}return u.return(c)})},NB=function(a,b,c){var d,e,f,g,h,m,n,q,u,p,t;return _.J(function(v){if(v.h==1)return d={},c!=null&&(d.mimeType=c.mimeType,d.name=c.name, d.displayName=c.displayName),d.name&&!d.name.startsWith("files/")&&(d.name="files/"+d.name),e=a.R.il,v.g(e.stat(b),2);if(v.h!=3){f=v.j;d.sizeBytes=String(f.size);m=(h=(g=c)==null?void 0:g.mimeType)!=null?h:f.type;if(m===void 0||m==="")throw Error("Lc");d.mimeType=m;n={file:d};var w="";if(typeof b==="string"){w=b.replace(/[/\\]+$/,"");var y;w=(y=w.split(/[/\\]/).pop())!=null?y:""}q=w;u=L("upload/v1beta/files",n._url);return v.g(iC(a,u,d.sizeBytes,d.mimeType,q,n,(p=c)==null?void 0:p.httpOptions),3)}t= v.j;return v.return(e.upload(b,t,a))})},OB=function(a,b){var c;return _.J(function(d){c=a.R.ej;return d.g(c.download(b,a),0)})},iC=function(a,b,c,d,e,f,g){var h,m,n,q,u,p;return _.J(function(t){if(t.h==1)return h={},g?h=g:h={apiVersion:"",headers:Object.assign({},{"Content-Type":"application/json","X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":c,"X-Goog-Upload-Header-Content-Type":d},e?{"X-Goog-Upload-File-Name":e}:{})},t.g(a.request({path:b, body:JSON.stringify(f),O:"POST",httpOptions:h}),2);m=t.j;if(!m||(n=m)==null||!n.headers)throw Error("Mc");p=(q=m)==null?void 0:(u=q.headers)==null?void 0:u["x-goog-upload-url"];if(p===void 0)throw Error("Nc");return t.return(p)})};var kC=function(a){var b=this;b.g=a;b.list=function(c){var d,e;return _.J(function(f){return f.h==1?(d=DB,e="documents",f.g(jC(b,c),2)):f.return(new d(e,function(g){return jC(b,{parent:c.parent,config:g.config})},f.j,c))})};return b};_.z(kC,kB); kC.prototype.get=function(a){var b=this,c,d,e,f,g,h;return _.J(function(m){d="";e={};if(P(b.g))throw Error("sc");f=Wp(a);d=L("{name}",f._url);e=f._query;delete f._url;delete f._query;c=b.g.request({path:d,S:e,body:JSON.stringify(f),O:"GET",httpOptions:(g=a.config)==null?void 0:g.httpOptions,abortSignal:(h=a.config)==null?void 0:h.abortSignal}).then(function(n){return R(n)});return m.return(c.then(function(n){return n}))})}; kC.prototype.delete=function(a){var b=this,c,d,e,f,g;return _.J(function(h){c="";d={};if(P(b.g))throw Error("sc");var m={},n=O(a,["name"]);n!=null&&M(m,["_url","name"],n);n=O(a,["config"]);n!=null&&(n=O(n,["force"]),m!==void 0&&n!=null&&M(m,["_query","force"],n));e=m;c=L("{name}",e._url);d=e._query;delete e._url;delete e._query;return h.g(b.g.request({path:c,S:d,body:JSON.stringify(e),O:"DELETE",httpOptions:(f=a.config)==null?void 0:f.httpOptions,abortSignal:(g=a.config)==null?void 0:g.abortSignal}), 0)})};var jC=function(a,b){var c,d,e,f,g,h;return _.J(function(m){d="";e={};if(P(a.g))throw Error("sc");f=Xp(b);d=L("{parent}/documents",f._url);e=f._query;delete f._url;delete f._query;c=a.g.request({path:d,S:e,body:JSON.stringify(f),O:"GET",httpOptions:(g=b.config)==null?void 0:g.httpOptions,abortSignal:(h=b.config)==null?void 0:h.abortSignal}).then(function(n){return R(n)});return m.return(c.then(function(n){n=Yp(n);var q=new xB;Object.assign(q,n);return q}))})};var mC=function(a,b){b=b===void 0?new kC(a):b;var c=this;c.g=a;c.h=b;c.list=function(d){d=d===void 0?{}:d;var e,f;return _.J(function(g){return g.h==1?(e=DB,f="fileSearchStores",g.g(lC(c,d),2)):g.return(new e(f,function(h){return lC(c,h)},g.j,d))})};return c};_.z(mC,kB); mC.prototype.create=function(a){var b=this,c,d,e,f,g,h;return _.J(function(m){d="";e={};if(P(b.g))throw Error("sc");f=Pp(a);d=L("fileSearchStores",f._url);e=f._query;delete f._url;delete f._query;c=b.g.request({path:d,S:e,body:JSON.stringify(f),O:"POST",httpOptions:(g=a.config)==null?void 0:g.httpOptions,abortSignal:(h=a.config)==null?void 0:h.abortSignal}).then(function(n){return R(n)});return m.return(c.then(function(n){return n}))})}; mC.prototype.get=function(a){var b=this,c,d,e,f,g,h;return _.J(function(m){d="";e={};if(P(b.g))throw Error("sc");f=Qp(a);d=L("{name}",f._url);e=f._query;delete f._url;delete f._query;c=b.g.request({path:d,S:e,body:JSON.stringify(f),O:"GET",httpOptions:(g=a.config)==null?void 0:g.httpOptions,abortSignal:(h=a.config)==null?void 0:h.abortSignal}).then(function(n){return R(n)});return m.return(c.then(function(n){return n}))})}; mC.prototype.delete=function(a){var b=this,c,d,e,f,g;return _.J(function(h){c="";d={};if(P(b.g))throw Error("sc");var m={},n=O(a,["name"]);n!=null&&M(m,["_url","name"],n);n=O(a,["config"]);n!=null&&(n=O(n,["force"]),m!==void 0&&n!=null&&M(m,["_query","force"],n));e=m;c=L("{name}",e._url);d=e._query;delete e._url;delete e._query;return h.g(b.g.request({path:c,S:d,body:JSON.stringify(e),O:"DELETE",httpOptions:(f=a.config)==null?void 0:f.httpOptions,abortSignal:(g=a.config)==null?void 0:g.abortSignal}), 0)})};var lC=function(a,b){var c,d,e,f,g,h;return _.J(function(m){d="";e={};if(P(a.g))throw Error("sc");f=Rp(b);d=L("fileSearchStores",f._url);e=f._query;delete f._url;delete f._query;c=a.g.request({path:d,S:e,body:JSON.stringify(f),O:"GET",httpOptions:(g=b.config)==null?void 0:g.httpOptions,abortSignal:(h=b.config)==null?void 0:h.abortSignal}).then(function(n){return R(n)});return m.return(c.then(function(n){n=Sp(n);var q=new yB;Object.assign(q,n);return q}))})};var nC=function(){};nC.prototype.download=function(){return _.J(function(){throw Error("Pc");})};var oC=function(){};oC.prototype.upload=function(a,b,c,d){return _.J(function(e){if(e.h==1){if(typeof a==="string")throw Error("Sc");return e.g($p(a,b,c,d),2)}return e.return(e.j)})};oC.prototype.stat=function(a){return _.J(function(b){if(b.h==1){if(typeof a==="string")throw Error("Sc");return b.g(cq(a),3)}return b.return(b.j)})};var pC=function(a){this.apiKey=a},YB=function(a,b){return _.J(function(c){if(b.get("x-goog-api-key")!==null)return c.return();if(a.apiKey.startsWith("auth_tokens/"))throw Error("Tc");if(!a.apiKey)throw Error("Uc");b.append("x-goog-api-key",a.apiKey);c.F()})};var qC=function(a){if(a instanceof Error)return a;if(typeof a==="object"&&a!==null){try{if(Object.prototype.toString.call(a)==="[object Error]"){var b=Error(a.message,a.cause?{cause:a.cause}:{});a.stack&&(b.stack=a.stack);a.cause&&!b.cause&&(b.cause=a.cause);a.name&&(b.name=a.name);return b}}catch(c){}try{return Error(JSON.stringify(a))}catch(c){}}return Error(a)};var wq=function(){var a=Error.apply(this,arguments);this.message=a.message;"stack"in a&&(this.stack=a.stack)};_.z(wq,Error);var rC=function(a,b,c,d){var e=wq.call;c=(b==null?0:b.message)?typeof b.message==="string"?b.message:JSON.stringify(b.message):b?JSON.stringify(b):c;e.call(wq,this,""+(a&&c?a+" "+c:a?a+" status code (no body)":c?c:"(no status code or body)"));this.status=a;this.headers=d;this.error=b};_.z(rC,wq); var BC=function(a,b,c,d){return a&&d?a===400?new sC(a,b,c,d):a===401?new tC(a,b,c,d):a===403?new uC(a,b,c,d):a===404?new vC(a,b,c,d):a===409?new wC(a,b,c,d):a===422?new xC(a,b,c,d):a===429?new yC(a,b,c,d):a>=500?new zC(a,b,c,d):new rC(a,b,c,d):new AC({message:c,cause:qC(b)})},CC=function(a){rC.call(this,void 0,void 0,(a===void 0?{}:a).message||"Request was aborted.",void 0)};_.z(CC,rC); var AC=function(a){var b=a.message;a=a.cause;rC.call(this,void 0,void 0,b||"Connection error.",void 0);a&&(this.cause=a)};_.z(AC,rC);var DC=function(a){var b;AC.call(this,{message:(b=(a===void 0?{}:a).message)!=null?b:"Request timed out."})};_.z(DC,AC);var sC=function(){rC.apply(this,arguments)};_.z(sC,rC);var tC=function(){rC.apply(this,arguments)};_.z(tC,rC);var uC=function(){rC.apply(this,arguments)};_.z(uC,rC);var vC=function(){rC.apply(this,arguments)};_.z(vC,rC); var wC=function(){rC.apply(this,arguments)};_.z(wC,rC);var xC=function(){rC.apply(this,arguments)};_.z(xC,rC);var yC=function(){rC.apply(this,arguments)};_.z(yC,rC);var zC=function(){rC.apply(this,arguments)};_.z(zC,rC);var eq,gq;var yq=function(){this.buffer=new Uint8Array;this.g=null;this.h=0}; yq.prototype.decode=function(a){if(a==null)return[];a=a instanceof ArrayBuffer?new Uint8Array(a):typeof a==="string"?fq(a):a;a=[this.buffer,a];for(var b=0,c=_.A(a),d=c.next();!d.done;d=c.next())b+=d.value.length;b=new Uint8Array(b);c=0;a=_.A(a);for(d=a.next();!d.done;d=a.next())d=d.value,b.set(d,c),c+=d.length;this.buffer=b;a=[];for(var e;(b=iq(this.buffer,(e=this.g)!=null?e:this.h))!=null;)b.Ue&&this.g==null?this.g=b.index:(this.g==null||b.index===this.g+1&&!b.Ue?(c=hq(this.buffer.subarray(0,this.g!== null?b.Ef-1:b.Ef)),a.push(c),this.buffer=this.buffer.subarray(b.index)):(a.push(hq(this.buffer.subarray(0,this.g-1))),this.buffer=this.buffer.subarray(this.g)),this.g=null,this.h=0);this.h=Math.max(0,this.buffer.length-1);return a};yq.prototype.flush=function(){return this.buffer.length?this.decode("\n"):[]};var EC=/^[a-z][a-z0-9+.-]*:/i,FC=function(a){return FC=Array.isArray,FC(a)},Iq=FC;var pq={Fo:0,error:200,warn:300,info:400,debug:500},GC=function(a,b,c){if(a){if(Object.prototype.hasOwnProperty.call(pq,a))return a;tq(c).warn(b+" was set to "+JSON.stringify(a)+", expected one of "+JSON.stringify(Object.keys(pq)))}},rq={error:oq,warn:oq,info:oq,debug:oq},sq=new WeakMap,Fq=function(a){a.options&&(a.options=Object.assign({},a.options),delete a.options.headers);a.headers&&(a.headers=Object.fromEntries((a.headers instanceof Headers?[].concat(_.mc(a.headers)):Object.entries(a.headers)).map(function(b){var c= _.A(b);b=c.next().value;c=c.next().value;return[b,b.toLowerCase()==="x-goog-api-key"||b.toLowerCase()==="authorization"||b.toLowerCase()==="cookie"||b.toLowerCase()==="set-cookie"?"***":c]})));"retryOfRequestLogID"in a&&(a.fb&&(a.Io=a.fb),delete a.fb);return a};var HC=function(a,b,c){this.iterator=a;this.controller=b;this.client=c},Eq=function(a,b,c){var d=!1,e=c?tq(c):console;return new HC(function(){return function(){return new uq(function g(){var h,m,n,q,u,p,t,v,w,y;return vq(g,function(B){switch(B.h){case 1:B.C(2);if(d)throw new wq("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");d=!0;h=!1;B.B(4,5);B.B(7,8);u=zq(Dq(a,b));case 10:return B.g(new Bq(2,u.next()),13);case 13:n=B.j;if(n.done){B.H(8);break}p=n.value;if(h){B.H(10); break}if(p.data.startsWith("[DONE]")){h=!0;B.H(10);break}B.B(15);t=Cq;return B.g(new Bq(0,JSON.parse(p.data)),17);case 17:t(B.j);B.T(10,7);break;case 15:throw v=B.A(7),e.error("Could not parse message into JSON:",p.data),e.error("From chunk:",p.raw),v;case 8:B.l(4,5);B.C(18);if(!n||n.done||!(q=u.return)){B.H(18);break}return B.g(new Bq(2,q.call(u)),18);case 18:B.l(4,5,1);if(m)throw m.error;B.o(19,1);break;case 19:B.o(9);break;case 7:w=B.A();m={error:w};B.H(8);break;case 9:h=!0;case 5:B.l(0,2);h|| b.abort();B.o(2);break;case 4:y=B.A();if(dq(y))return B.return(new Bq(0));throw y;case 2:B.l(),B.o(0)}})}())}()},b,c)};HC.prototype[Symbol.asyncIterator]=function(){return this.iterator()};var xq=function(){this.event=null;this.data=[];this.g=[]}; xq.prototype.decode=function(a){a.endsWith("\r")&&(a=a.substring(0,a.length-1));if(!a){if(!this.event&&!this.data.length)return null;a={event:this.event,data:this.data.join("\n"),raw:this.g};this.event=null;this.data=[];this.g=[];return a}this.g.push(a);if(a.startsWith(":"))return null;var b=a.indexOf(":");b=_.A(b!==-1?[a.substring(0,b),":",a.substring(b+1)]:[a,"",""]);a=b.next().value;b.next();b=b.next().value;b.startsWith(" ")&&(b=b.substring(1));a==="event"?this.event=b:a==="data"&&this.data.push(b); return null};var IC=function(a,b,c){c=c===void 0?Gq:c;var d=(0,_.ec)(Promise,[function(e){e(null)}],this.constructor);d.j=b;d.g=c;d.client=a;return d};_.z(IC,Promise);_.k=IC.prototype;_.k.jn=function(a){var b=this;return new IC(this.client,this.j,function(c,d){var e;return _.J(function(f){return f.h==1?(e=a,f.g(b.g(c,d),2)):f.return(e(f.j,d))})})};_.k.parse=function(){var a=this;this.h||(this.h=this.j.then(function(b){return a.g(a.client,b)}));return this.h};_.k.then=function(a,b){return this.parse().then(a,b)}; _.k.catch=function(a){return this.parse().catch(a)};_.k.finally=function(a){return this.parse().finally(a)};var Hq=Symbol("Xc"),JC=function(a){var b=new Headers,c=new Set;a=_.A(a);for(var d=a.next();!d.done;d=a.next()){var e=new Set;d=_.A(Jq(d.value));for(var f=d.next();!f.done;f=d.next()){var g=_.A(f.value);f=g.next().value;g=g.next().value;var h=f.toLowerCase();e.has(h)||(b.delete(f),e.add(h));g===null?(b.delete(f),c.add(h)):(b.append(f,g),c.delete(h))}}a={};return a[Hq]=!0,a.values=b,a.wh=c,a};var KC=function(a){return{Sb:{"content-type":"application/json"},body:JSON.stringify(a.body)}};var LC=function(a){if(typeof globalThis.process!=="undefined"){var b,c,d;return(d=(b=globalThis.process.env)==null?void 0:(c=b[a])==null?void 0:c.trim())!=null?d:void 0}if(typeof globalThis.ci!=="undefined"){var e,f,g;return(e=globalThis.ci.env)==null?void 0:(f=e.get)==null?void 0:(g=f.call(e,a))==null?void 0:g.trim()}};var MC=function(a){return new Promise(function(b){return setTimeout(b,a)})};var NC=function(){var a=globalThis.crypto;if(a==null?0:a.randomUUID)return NC=a.randomUUID.bind(a),a.randomUUID();var b=new Uint8Array(1),c=a?function(){return a.getRandomValues(b)[0]}:function(){return Math.random()*255&255};return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,function(d){return(+d^c()&15>>+d/4).toString(16)})};var OC=function(a){this.g=a};var PC=Object.freeze(Object.create(null)),QC=function(a){a=a===void 0?Lq:a;return function(b){var c=_.sc.apply(1,arguments);if(b.length===1)return b[0];for(var d=!1,e=[],f=b.reduce(function(p,t,v){/[?#]/.test(t)&&(d=!0);var w=c[v],y=(d?encodeURIComponent:a)(""+w),B,H,I;v!==c.length&&(w==null||typeof w==="object"&&w.toString===((B=Object.getPrototypeOf((I=Object.getPrototypeOf((H=w.hasOwnProperty)!=null?H:PC))!=null?I:PC))==null?void 0:B.toString))&&(y=w+"",e.push({start:p.length+t.length,length:y.length, error:"Value of type "+Object.prototype.toString.call(w).slice(8,-1)+" is not a valid path parameter"}));return p+t+(v===c.length?"":y)},""),g=f.split(/[?#]/,1)[0],h=/(^|\/)(?:\.|%2e){1,2}(?=\/|$)/gi,m;(m=h.exec(g))!==null;){var n=m[0].startsWith("/"),q=n?m[0].slice(1):m[0];e.push({start:m.index+(n?1:0),length:q.length,error:'Value "'+q+"\" can't be safely passed as a path parameter"})}e.sort(function(p,t){return p.start-t.start});if(e.length>0){var u=0;g=e.reduce(function(p,t){var v=" ".repeat(t.start- u),w="^".repeat(t.length);u=t.start+t.length;return p+v+w},"");throw new wq("Path parameters result in path with invalid segments:\n"+e.map(function(p){return p.error}).join("\n")+"\n"+f+"\n"+g);}return f}}(Lq);var RC=_.Si(["/","/interactions"]),SC=_.Si(["/","/interactions/",""]),TC=_.Si(["/","/interactions/","/cancel"]),UC=_.Si(["/","/interactions/",""]),VC=function(){OC.apply(this,arguments)};_.z(VC,OC); VC.prototype.create=function(a,b){var c=Object.assign({},a),d=a.wb===void 0?this.g.apiVersion:a.wb,e=(delete c.wb,c);if("model"in e&&"agent_config"in e)throw new wq("Invalid request: specified `model` and `agent_config`. If specifying `model`, use `generation_config`.");if("agent"in e&&"generation_config"in e)throw new wq("Invalid request: specified `agent` and `generation_config`. If specifying `agent`, use `agent_config`.");var f;c=this.g;d=QC(RC,d);a=Object.assign({},{body:e},b,{stream:(f=a.stream)!= null?f:!1});return WC(c,"post",d,a)};VC.prototype.delete=function(a,b,c){b=b===void 0?{}:b;var d;b=(d=b)!=null?d:{};return this.g.delete(QC(SC,b.wb===void 0?this.g.apiVersion:b.wb,a),c)};VC.prototype.cancel=function(a,b,c){b=b===void 0?{}:b;var d;b=(d=b)!=null?d:{};d=this.g;a=QC(TC,b.wb===void 0?this.g.apiVersion:b.wb,a);return WC(d,"post",a,c)}; VC.prototype.get=function(a,b,c){b=b===void 0?{}:b;var d,e=(d=b)!=null?d:{};d=Object.assign({},e);e=e.wb===void 0?this.g.apiVersion:e.wb;d=(delete d.wb,d);var f,g;return this.g.get(QC(UC,e,a),Object.assign({},{query:d},c,{stream:(g=(f=b)==null?void 0:f.stream)!=null?g:!1}))};Object.freeze(["interactions"]);var XC=function(){VC.apply(this,arguments)};_.z(XC,VC);var YC,ZC=function(a){var b=Object.assign({},a);var c=a.baseURL===void 0?LC("GEMINI_NEXT_GEN_API_BASE_URL"):a.baseURL;var d=a.apiKey===void 0?(YC=LC("GEMINI_API_KEY"))!=null?YC:null:a.apiKey;a=a.apiVersion===void 0?"v1beta":a.apiVersion;b=(delete b.baseURL,delete b.apiKey,delete b.apiVersion,b);c=Object.assign({},{apiKey:d,apiVersion:a},b,{baseURL:c||"https://generativelanguage.googleapis.com"});this.baseURL=c.baseURL;var e;this.timeout=(e=c.timeout)!=null?e:6E4;var f;this.gd=(f=c.gd)!=null?f:console; this.wf="warn";var g,h;this.wf=(h=(g=GC(c.wf,"ClientOptions.logLevel",this))!=null?g:GC(LC("GEMINI_NEXT_GEN_API_LOG"),"process.env['GEMINI_NEXT_GEN_API_LOG']",this))!=null?h:"warn";this.af=c.af;var m;this.Ec=(m=c.Ec)!=null?m:2;if((e=c.fetch)==null)if(typeof fetch!=="undefined")e=fetch;else throw Error("Vc");this.fetch=e;this.h=KC;this.g=c;this.apiKey=d;this.apiVersion=a;this.Db=c.Db};ZC.prototype.Bg=function(){return this.g.Bg}; var $C=function(a,b){var c,d;return _.J(function(e){if(e.h==1){c=JC([b.headers]);if(c.values.has("authorization")||c.values.has("x-goog-api-key"))return e.return(void 0);if(a.apiKey)return e.return(JC([{"x-goog-api-key":a.apiKey}]));if(!P(a.Db))return e.H(2);d=JC;return e.g(ZB(a.Db),3)}return e.h!=2?e.return(d([e.j])):e.return(void 0)})},aD=function(a,b){var c;return _.J(function(d){a.Db&&P(a.Db)&&!b.path.startsWith("/"+a.apiVersion+"/projects/")&&(c=b.path.slice(a.apiVersion.length+1),b.path="/"+ a.apiVersion+"/projects/"+a.Db.R.Qa+"/locations/"+a.Db.R.location+c);d.F()})},bD=function(){return _.J(function(a){a.F()})};ZC.prototype.get=function(a,b){return WC(this,"get",a,b)};ZC.prototype.delete=function(a,b){return WC(this,"delete",a,b)};var WC=function(a,b,c,d){return a.request(Promise.resolve(d).then(function(e){return Object.assign({},{method:b,path:c},e)}))};ZC.prototype.request=function(a,b){return new IC(this,cD(this,a,b===void 0?null:b))}; var cD=function(a,b,c,d){var e,f,g,h,m,n,q,u,p,t,v,w,y,B,H,I,N,K,X,F,ea,Y,ya,Q,lb,Wa,Xb;return _.J(function(ra){switch(ra.h){case 1:return ra.g(b,2);case 2:return e=ra.j,g=(f=e.Ec)!=null?f:a.Ec,c==null&&(c=g),ra.g(aD(a,e),3);case 3:return ra.g(dD(a,e,{Kf:g-c}),4);case 4:return h=ra.j,m=h.Qk,n=h.url,q=h.timeout,ra.g(bD(),5);case 5:u="log_"+(Math.random()*16777216|0).toString(16).padStart(6,"0");p=d===void 0?"":", retryOf: "+d;t=Date.now();tq(a).debug("["+u+"] sending request",Fq({fb:d,method:e.method, url:n,options:e,headers:m.headers}));if((v=e.signal)==null?0:v.aborted)throw new CC;w=new AbortController;return ra.g(eD(a,n,m,q,w).catch(qC),6);case 6:y=ra.j;B=Date.now();if(y instanceof globalThis.Error){H="retrying, "+c+" attempts remaining";if((I=e.signal)==null?0:I.aborted)throw new CC;N=dq(y)||/timed? ?out/i.test(String(y)+("cause"in y?String(y.cause):""));if(c)return tq(a).info("["+u+"] connection "+(N?"timed out":"failed")+" - "+H),tq(a).debug("["+u+"] connection "+(N?"timed out":"failed")+ " ("+H+")",Fq({fb:d,url:n,Xc:B-t,message:y.message})),ra.return(fD(a,e,c,(K=d)!=null?K:u));tq(a).info("["+u+"] connection "+(N?"timed out":"failed")+" - error; no more retries left");tq(a).debug("["+u+"] connection "+(N?"timed out":"failed")+" (error; no more retries left)",Fq({fb:d,url:n,Xc:B-t,message:y.message}));if(N)throw new DC;throw new AC({cause:y});}X="["+u+p+"] "+m.method+" "+n+" "+(y.ok?"succeeded":"failed")+" with status "+y.status+" in "+(B-t)+"ms";if(y.ok){ra.H(7);break}return ra.g(gD(y), 8);case 8:F=ra.j;if(!c||!F){ra.H(9);break}ea="retrying, "+c+" attempts remaining";return ra.g(mq(y.body),10);case 10:return tq(a).info(X+" - "+ea),tq(a).debug("["+u+"] response error ("+ea+")",Fq({fb:d,url:y.url,status:y.status,headers:y.headers,Xc:B-t})),ra.return(fD(a,e,c,(Y=d)!=null?Y:u,y.headers));case 9:return ya=F?"error; no more retries left":"error; not retryable",tq(a).info(X+" - "+ya),ra.g(y.text().catch(function(Yb){return qC(Yb).message}),11);case 11:Q=ra.j;a:{try{var Gb=JSON.parse(Q); break a}catch(Yb){}Gb=void 0}Wa=(lb=Gb)?void 0:Q;tq(a).debug("["+u+"] response error ("+ya+")",Fq({fb:d,url:y.url,status:y.status,headers:y.headers,message:Wa,Xc:Date.now()-t}));Xb=BC(y.status,lb,Wa,y.headers);throw Xb;case 7:return tq(a).info(X),tq(a).debug("["+u+"] response start",Fq({fb:d,url:y.url,status:y.status,headers:y.headers,Xc:B-t})),ra.return({response:y,options:e,controller:w,Rk:u,fb:d,startTime:t})}})},eD=function(a,b,c,d,e){var f,g,h,m,n,q,u,p,t;return _.J(function(v){if(v.h==1)return f= c||{},g=Object.assign({},f),h=f.signal,m=f.method,n=(delete g.signal,delete g.method,g),q=hD(e),h&&h.addEventListener("abort",q,{once:!0}),u=setTimeout(q,d),p=globalThis.ReadableStream&&n.body instanceof globalThis.ReadableStream||typeof n.body==="object"&&n.body!==null&&Symbol.asyncIterator in n.body,t=Object.assign({},{signal:e.signal},p?{fj:"half"}:{},{method:"GET"},n),m&&(t.method=m.toUpperCase()),v.C(2),v.g(a.fetch.call(void 0,b,t),4);if(v.h!=2)return v.return(v.j);v.l();clearTimeout(u);return v.o(0)})}, gD=function(a){var b;return _.J(function(c){b=a.headers.get("x-should-retry");return b==="true"?c.return(!0):b==="false"?c.return(!1):a.status===408||a.status===409||a.status===429||a.status>=500?c.return(!0):c.return(!1)})},fD=function(a,b,c,d,e){var f,g,h,m,n,q,u,p,t;return _.J(function(v){if(v.h==1){if(h=(g=e)==null?void 0:g.get("retry-after-ms"))m=parseFloat(h),Number.isNaN(m)||(f=m);(q=(n=e)==null?void 0:n.get("retry-after"))&&!f&&(u=parseFloat(q),f=Number.isNaN(u)?Date.parse(q)-Date.now():u* 1E3);f===void 0&&(t=(p=b.Ec)!=null?p:a.Ec,f=Math.min(.5*Math.pow(2,t-c),8)*(1-Math.random()*.25)*1E3);return v.g(MC(f),2)}return v.return(cD(a,b,c-1,d))})},dD=function(a,b,c){c=c===void 0?{}:c;var d=c.Kf===void 0?0:c.Kf;var e,f,g,h,m,n,q,u,p,t,v,w,y,B,H;return _.J(function(I){if(I.h==1){f=e=Object.assign({},b);g=f.method;h=f.path;m=f.query;n=f.yn;var N=h,K=m,X=a.baseURL==="https://generativelanguage.googleapis.com"&&n||a.baseURL;N=EC.test(N)?new URL(N):new URL(X+(X.endsWith("/")&&N.startsWith("/")? N.slice(1):N));X=a.g.Bg;var F=Object.fromEntries(N.searchParams);nq(X)&&nq(F)||(K=Object.assign({},F,X,K));typeof K==="object"&&K&&!Array.isArray(K)&&(N.search=Kq(K));q=N.toString();if("timeout"in e){K=e.timeout;if(typeof K!=="number"||!Number.isInteger(K))throw new wq("timeout must be an integer");if(K<0)throw new wq("timeout must be a positive integer");}e.timeout=(u=e.timeout)!=null?u:a.timeout;N=e;(K=N.body)?(N=JC([N.headers]),K=ArrayBuffer.isView(K)||K instanceof ArrayBuffer||K instanceof DataView|| typeof K==="string"&&N.values.has("content-type")||globalThis.Blob&&K instanceof globalThis.Blob||K instanceof FormData||K instanceof URLSearchParams||globalThis.ReadableStream&&K instanceof globalThis.ReadableStream?{Sb:void 0,body:K}:typeof K==="object"&&(Symbol.asyncIterator in K||Symbol.iterator in K&&"next"in K&&typeof K.next==="function")?{Sb:void 0,body:kq(K)}:typeof K==="object"&&N.values.get("content-type")==="application/x-www-form-urlencoded"?{Sb:{"content-type":"application/x-www-form-urlencoded"}, body:Kq(K)}:a.h({body:K,headers:N})):K={Sb:void 0,body:void 0};p=K;t=p.Sb;v=p.body;return I.g(iD(a,{options:b,method:g,Sb:t,Kf:d}),2)}w=I.j;H=Object.assign({},{method:g,headers:w},e.signal&&{signal:e.signal},globalThis.ReadableStream&&v instanceof globalThis.ReadableStream&&{fj:"half"},v&&{body:v},(y=a.af)!=null?y:{},(B=e.af)!=null?B:{});return I.return({Qk:H,url:q,timeout:e.timeout})})},iD=function(a,b){var c=b.options;var d=b.method;var e=b.Sb;var f,g,h;return _.J(function(m){if(m.h==1)return f= {},a.j&&d!=="get"&&(c.eh||(c.eh="stainless-node-retry-"+NC()),f[a.j]=c.eh),m.g($C(a,c),2);g=m.j;h=JC([f,{yl:"application/json","User-Agent":a.constructor.name+"/JS 0.0.1"},a.g.Zi,e,c.headers,g]);var n=h.values;var q=h.wh;if(!(n.has("authorization")||n.has("x-goog-api-key")||a.apiKey&&n.get("x-goog-api-key")||q.has("x-goog-api-key")))throw Error("Zc");return m.return(h.values)})},hD=function(a){return function(){return a.abort()}},jD=function(){ZC.apply(this,arguments);this.interactions=new XC(this)}; _.z(jD,ZC);var vD=function(a){var b=this;b.g=a;b.l=function(c){var d,e,f,g;return _.J(function(h){switch(h.h){case 1:if(P(b.g)){h.H(2);break}return h.g(kD(b,c),3);case 3:return h.return(h.j);case 2:if(d=c.model.includes("gemini")&&c.model!=="gemini-embedding-001"||c.model.includes("maas")){f=uo(c.contents);if(f.length>1)throw Error("ld");g=Object.assign({},c,{content:f[0],embeddingApiType:"EMBED_CONTENT"});return h.g(kD(b,g),7)}e=Object.assign({},c,{embeddingApiType:"PREDICT"});return h.g(kD(b,e),6);case 6:return h.return(h.j); case 7:return h.return(h.j)}})};b.h=function(c){var d,e,f,g,h,m,n,q,u,p,t,v,w,y,B,H,I,N,K,X;return _.J(function(F){switch(F.h){case 1:return F.g(lD(b,c),2);case 2:d=F.j;mD(c);if($r(c)&&!Zr(c.config)){F.H(3);break}return F.g(nD(b,d),4);case 4:return F.return(F.j);case 3:e=as(c);if(e.length>0)throw f=e.map(function(ea){return"tools["+ea+"]"}).join(", "),Error("md`"+f);m=uo(d.contents);p=(u=(n=d.config)==null?void 0:(q=n.automaticFunctionCalling)==null?void 0:q.maximumRemoteCalls)!=null?u:10;t=0;case 5:if(!(t< p)){F.H(7);break}return F.g(nD(b,d),8);case 8:g=F.j;if(!g.functionCalls||g.functionCalls.length===0){F.H(7);break}v=g.candidates[0].content;w=[];B=y=void 0;H=_.A((B=(y=c.config)==null?void 0:y.tools)!=null?B:[]);I=H.next();case 9:if(I.done){F.H(11);break}N=I.value;if(!Yr(N)){F.H(10);break}K=N;return F.g(K.wg(g.functionCalls),13);case 13:X=F.j,w.push.apply(w,_.mc(X));case 10:I=H.next();F.H(9);break;case 11:t++;h={role:"user",parts:w};d.contents=uo(d.contents);d.contents.push(v);d.contents.push(h); bs(d.config)&&(m.push(v),m.push(h));F.H(5);break;case 7:return bs(d.config)&&(g.g=m),F.return(g)}})};b.o=function(c){var d,e,f,g,h,m,n,q,u,p,t,v;return _.J(function(w){switch(w.h){case 1:mD(c);if(!Zr(c.config)){w.H(2);break}return w.g(lD(b,c),3);case 3:return d=w.j,w.g(oD(b,d),4);case 4:return w.return(w.j);case 2:e=as(c);if(e.length>0)throw f=e.map(function(y){return"tools["+y+"]"}).join(", "),Error("nd`"+f);q=(g=c)==null?void 0:(h=g.config)==null?void 0:(m=h.toolConfig)==null?void 0:(n=m.functionCallingConfig)== null?void 0:n.streamFunctionCallArguments;v=(u=c)==null?void 0:(p=u.config)==null?void 0:(t=p.automaticFunctionCalling)==null?void 0:t.disable;if(q&&!v)throw Error("od");return w.g(pD(b,c),5);case 5:return w.return(w.j)}})};b.A=function(c){return _.J(function(d){return d.h==1?d.g(qD(b,c).then(function(e){var f=[];if(e==null?0:e.df)for(var g=_.A(e.df),h=g.next();!h.done;h=g.next()){h=h.value;var m=void 0,n=void 0,q=void 0;if(h&&((m=h)==null?0:m.safetyAttributes)&&((n=h)==null?void 0:(q=n.safetyAttributes)== null?void 0:q.contentType)==="Positive Prompt"){m=void 0;var u=(m=h)==null?void 0:m.safetyAttributes}else f.push(h)}var p;u?p={df:f,Go:u,sdkHttpResponse:e.sdkHttpResponse}:p={df:f,sdkHttpResponse:e.sdkHttpResponse};return p}),2):d.return(d.j)})};b.list=function(c){var d,e,f,g,h,m,n;return _.J(function(q){if(q.h==1){d={queryBase:!0};f=Object.assign({},d,(e=c)==null?void 0:e.config);g={config:f};if(P(b.g)&&!g.config.queryBase){if((h=g.config)==null?0:h.filter)throw Error("pd");g.config.filter="labels.tune-type:*"}m= DB;n="models";return q.g(rD(b,g),2)}return q.return(new m(n,function(u){return rD(b,u)},q.j,g))})};b.j=function(c){var d;return _.J(function(e){return e.h==1?(d={model:c.model,prompt:c.prompt,referenceImages:[],config:c.config},c.referenceImages&&c.referenceImages&&(d.referenceImages=c.referenceImages.map(function(f){return f.g()})),e.g(sD(b,d),2)):e.return(e.j)})};b.C=function(c){var d,e;return _.J(function(f){return f.h==1?(d={numberOfImages:1,mode:"upscale"},c.config&&(d=Object.assign({},d,c.config)), e={model:c.model,image:c.image,upscaleFactor:c.upscaleFactor,config:d},f.g(tD(b,e),2)):f.return(f.j)})};b.B=function(c){var d,e,f,g,h,m;return _.J(function(n){if(n.h==1){if((c.prompt||c.image||c.video)&&c.source)throw Error("qd");P(b.g)||(((d=c.video)==null?0:d.uri)&&((e=c.video)==null?0:e.videoBytes)?c.video={uri:c.video.uri,mimeType:c.video.mimeType}:((f=c.source)==null?0:(g=f.video)==null?0:g.uri)&&((h=c.source)==null?0:(m=h.video)==null?0:m.videoBytes)&&(c.source.video={uri:c.source.video.uri, mimeType:c.source.video.mimeType}));return n.g(uD(b,c),2)}return n.return(n.j)})};return b};_.z(vD,kB); var mD=function(a){a.config&&a.config.responseSchema&&!a.config.responseJsonSchema&&Object.keys(a.config.responseSchema).includes("$schema")&&(a.config.responseJsonSchema=a.config.responseSchema,delete a.config.responseSchema)},lD=function(a,b){var c,d,e,f,g,h,m,n;return _.J(function(q){if(q.h==1)return(d=(c=b.config)==null?void 0:c.tools)?q.g(Promise.all(d.map(function(u){var p;return _.J(function(t){if(t.h==1){if(!Yr(u))return t.H(2);p=u;return t.g(p.dl(),3)}return t.h!=2?t.return(t.j):t.return(u)})})), 2):q.return(b);e=q.j;f={model:b.model,contents:b.contents,config:Object.assign({},b.config,{tools:e})};f.config.tools=e;b.config&&b.config.tools&&Wr(b.config.tools)&&(m=(h=(g=b.config.httpOptions)==null?void 0:g.headers)!=null?h:{},n=Object.assign({},m),Object.keys(n).length===0&&(n=VB(a.g)),Xr(n),f.config.httpOptions=Object.assign({},b.config.httpOptions,{headers:n}));return q.return(f)})},wD=function(a){var b,c,d,e,f,g,h,m,n,q,u,p;return _.J(function(t){switch(t.h){case 1:b=new Map,e=_.A((d=(c= a.config)==null?void 0:c.tools)!=null?d:[]),f=e.next();case 2:if(f.done){t.H(4);break}g=f.value;if(!Yr(g)){t.H(3);break}h=g;return t.g(h.dl(),6);case 6:for(m=t.j,n=void 0,q=_.A((n=m.functionDeclarations)!=null?n:[]),u=q.next();!u.done;u=q.next()){p=u.value;if(!p.name)throw Error("rd");if(b.has(p.name))throw Error("sd`"+p.name);b.set(p.name,h)}case 3:f=e.next();t.H(2);break;case 4:return t.return(b)}})},pD=function(a,b){var c,d,e,f,g,h,m;return _.J(function(n){if(n.h==1)return f=(e=(c=b.config)==null? void 0:(d=c.automaticFunctionCalling)==null?void 0:d.maximumRemoteCalls)!=null?e:10,g=!1,h=0,n.g(wD(b),2);m=n.j;return n.return(function(q,u,p){return function(){return new uq(function v(){var w,y,B,H,I,N,K,X,F,ea,Y,ya,Q,lb,Wa,Xb,ra,Gb,Yb,Hb,vc;return vq(v,function(S){switch(S.h){case 1:S.C(2);case 4:if(!(h0)){S.H(2);break}g=!0;Gb=new lB;Gb.candidates=[{content:{role:"user",parts:B}}];Yb=Cq;return S.g(new Bq(0,Gb),29);case 29:Yb(S.j); Hb=[];Hb.push.apply(Hb,_.mc(H));Hb.push({role:"user",parts:B});vc=uo(p.contents).concat(Hb);p.contents=vc;S.H(4);break;case 2:S.l(),S.o(0)}})}())}()}(a,m,b))})},nD=function(a,b){var c,d,e,f,g,h,m,n,q;return _.J(function(u){d="";e={};if(P(a.g))return f=mr(a.g,b),d=L("{model}:generateContent",f._url),e=f._query,delete f._url,delete f._query,c=a.g.request({path:d,S:e,body:JSON.stringify(f),O:"POST",httpOptions:(g=b.config)==null?void 0:g.httpOptions,abortSignal:(h=b.config)==null?void 0:h.abortSignal}).then(function(p){return R(p).then(function(t){t.sdkHttpResponse= {headers:p.headers};return t})}),u.return(c.then(function(p){p=or(p,b);var t=new lB;Object.assign(t,p);return t}));m=lr(a.g,b);d=L("{model}:generateContent",m._url);e=m._query;delete m._url;delete m._query;c=a.g.request({path:d,S:e,body:JSON.stringify(m),O:"POST",httpOptions:(n=b.config)==null?void 0:n.httpOptions,abortSignal:(q=b.config)==null?void 0:q.abortSignal}).then(function(p){return R(p).then(function(t){t.sdkHttpResponse={headers:p.headers};return t})});return u.return(c.then(function(p){p= nr(p,b);var t=new lB;Object.assign(t,p);return t}))})},oD=function(a,b){var c,d,e,f,g,h,m,n,q,u,p;return _.J(function(t){d="";e={};if(P(a.g))return f=mr(a.g,b),d=L("{model}:streamGenerateContent?alt=sse",f._url),e=f._query,delete f._url,delete f._query,g=a.g,c=eC(g,{path:d,S:e,body:JSON.stringify(f),O:"POST",httpOptions:(h=b.config)==null?void 0:h.httpOptions,abortSignal:(m=b.config)==null?void 0:m.abortSignal}),t.return(c.then(function(v){return function(){return new uq(function y(){var B,H,I,N, K,X,F,ea,Y,ya;return vq(y,function(Q){switch(Q.h){case 1:Q.C(2),Q.B(4,5),N=zq(v);case 7:return Q.g(new Bq(2,N.next()),10);case 10:H=Q.j;if(H.done){Q.H(5);break}K=H.value;X=or;return Q.g(new Bq(2,R(K)),11);case 11:return F=X(Q.j,b),F.sdkHttpResponse={headers:K.headers},ea=new lB,Object.assign(ea,F),Y=Cq,Q.g(new Bq(0,ea),12);case 12:Y(Q.j);Q.H(7);break;case 5:Q.l(0,2);Q.C(13);if(!H||H.done||!(I=N.return)){Q.H(13);break}return Q.g(new Bq(2,I.call(N)),13);case 13:Q.l(0,2,1);if(B)throw B.error;Q.o(14, 1);break;case 14:Q.o(2);break;case 4:ya=Q.A();B={error:ya};Q.H(5);break;case 2:Q.l(),Q.o(0)}})}())}()}));n=lr(a.g,b);d=L("{model}:streamGenerateContent?alt=sse",n._url);e=n._query;delete n._url;delete n._query;q=a.g;c=eC(q,{path:d,S:e,body:JSON.stringify(n),O:"POST",httpOptions:(u=b.config)==null?void 0:u.httpOptions,abortSignal:(p=b.config)==null?void 0:p.abortSignal});return t.return(c.then(function(v){return function(){return new uq(function y(){var B,H,I,N,K,X,F,ea,Y,ya;return vq(y,function(Q){switch(Q.h){case 1:Q.C(2), Q.B(4,5),N=zq(v);case 7:return Q.g(new Bq(2,N.next()),10);case 10:H=Q.j;if(H.done){Q.H(5);break}K=H.value;X=nr;return Q.g(new Bq(2,R(K)),11);case 11:return F=X(Q.j,b),F.sdkHttpResponse={headers:K.headers},ea=new lB,Object.assign(ea,F),Y=Cq,Q.g(new Bq(0,ea),12);case 12:Y(Q.j);Q.H(7);break;case 5:Q.l(0,2);Q.C(13);if(!H||H.done||!(I=N.return)){Q.H(13);break}return Q.g(new Bq(2,I.call(N)),13);case 13:Q.l(0,2,1);if(B)throw B.error;Q.o(14,1);break;case 14:Q.o(2);break;case 4:ya=Q.A();B={error:ya};Q.H(5); break;case 2:Q.l(),Q.o(0)}})}())}()}))})},kD=function(a,b){var c,d,e,f,g,h,m,n,q,u;return _.J(function(p){d="";e={};if(P(a.g))return f=$q(a.g,b,b),g=Ko(b.model)?"{model}:embedContent":"{model}:predict",d=L(g,f._url),e=f._query,delete f._url,delete f._query,c=a.g.request({path:d,S:e,body:JSON.stringify(f),O:"POST",httpOptions:(h=b.config)==null?void 0:h.httpOptions,abortSignal:(m=b.config)==null?void 0:m.abortSignal}).then(function(t){return R(t).then(function(v){v.sdkHttpResponse={headers:t.headers}; return v})}),p.return(c.then(function(t){t=br(t,b);var v=new mB;Object.assign(v,t);return v}));n=Zq(a.g,b);d=L("{model}:batchEmbedContents",n._url);e=n._query;delete n._url;delete n._query;c=a.g.request({path:d,S:e,body:JSON.stringify(n),O:"POST",httpOptions:(q=b.config)==null?void 0:q.httpOptions,abortSignal:(u=b.config)==null?void 0:u.abortSignal}).then(function(t){return R(t).then(function(v){v.sdkHttpResponse={headers:t.headers};return v})});return p.return(c.then(function(t){t=ar(t);var v=new mB; Object.assign(v,t);return v}))})},qD=function(a,b){var c,d,e,f,g,h,m,n,q;return _.J(function(u){d="";e={};if(P(a.g))return f=qr(a.g,b),d=L("{model}:predict",f._url),e=f._query,delete f._url,delete f._query,c=a.g.request({path:d,S:e,body:JSON.stringify(f),O:"POST",httpOptions:(g=b.config)==null?void 0:g.httpOptions,abortSignal:(h=b.config)==null?void 0:h.abortSignal}).then(function(p){return R(p).then(function(t){t.sdkHttpResponse={headers:p.headers};return t})}),u.return(c.then(function(p){p=ur(p); var t=new nB;Object.assign(t,p);return t}));m=pr(a.g,b);d=L("{model}:predict",m._url);e=m._query;delete m._url;delete m._query;c=a.g.request({path:d,S:e,body:JSON.stringify(m),O:"POST",httpOptions:(n=b.config)==null?void 0:n.httpOptions,abortSignal:(q=b.config)==null?void 0:q.abortSignal}).then(function(p){return R(p).then(function(t){t.sdkHttpResponse={headers:p.headers};return t})});return u.return(c.then(function(p){p=sr(p);var t=new nB;Object.assign(t,p);return t}))})},sD=function(a,b){var c, d,e,f,g,h;return _.J(function(m){d="";e={};if(P(a.g))return f=Uq(a.g,b),d=L("{model}:predict",f._url),e=f._query,delete f._url,delete f._query,c=a.g.request({path:d,S:e,body:JSON.stringify(f),O:"POST",httpOptions:(g=b.config)==null?void 0:g.httpOptions,abortSignal:(h=b.config)==null?void 0:h.abortSignal}).then(function(n){return R(n).then(function(q){q.sdkHttpResponse={headers:n.headers};return q})}),m.return(c.then(function(n){n=Wq(n);var q=new oB;Object.assign(q,n);return q}));throw Error("vd"); })},tD=function(a,b){var c,d,e,f,g,h;return _.J(function(m){d="";e={};if(P(a.g))return f=Ur(a.g,b),d=L("{model}:predict",f._url),e=f._query,delete f._url,delete f._query,c=a.g.request({path:d,S:e,body:JSON.stringify(f),O:"POST",httpOptions:(g=b.config)==null?void 0:g.httpOptions,abortSignal:(h=b.config)==null?void 0:h.abortSignal}).then(function(n){return R(n).then(function(q){q.sdkHttpResponse={headers:n.headers};return q})}),m.return(c.then(function(n){n=Vr(n);var q=new pB;Object.assign(q,n);return q})); throw Error("vd");})}; vD.prototype.get=function(a){var b=this,c,d,e,f,g,h,m,n,q;return _.J(function(u){d="";e={};if(P(b.g))return f=Gr(b.g,a),d=L("{name}",f._url),e=f._query,delete f._url,delete f._query,c=b.g.request({path:d,S:e,body:JSON.stringify(f),O:"GET",httpOptions:(g=a.config)==null?void 0:g.httpOptions,abortSignal:(h=a.config)==null?void 0:h.abortSignal}).then(function(p){return R(p)}),u.return(c.then(function(p){return Nr(p)}));m=Fr(b.g,a);d=L("{name}",m._url);e=m._query;delete m._url;delete m._query;c=b.g.request({path:d, S:e,body:JSON.stringify(m),O:"GET",httpOptions:(n=a.config)==null?void 0:n.httpOptions,abortSignal:(q=a.config)==null?void 0:q.abortSignal}).then(function(p){return R(p)});return u.return(c.then(function(p){return Lr(p)}))})}; var rD=function(a,b){var c,d,e,f,g,h,m,n,q;return _.J(function(u){d="";e={};if(P(a.g))return f=Kr(a.g,b),d=L("{models_url}",f._url),e=f._query,delete f._url,delete f._query,c=a.g.request({path:d,S:e,body:JSON.stringify(f),O:"GET",httpOptions:(g=b.config)==null?void 0:g.httpOptions,abortSignal:(h=b.config)==null?void 0:h.abortSignal}).then(function(p){return R(p).then(function(t){t.sdkHttpResponse={headers:p.headers};return t})}),u.return(c.then(function(p){p=Or(p);var t=new qB;Object.assign(t,p); return t}));m=Jr(a.g,b);d=L("{models_url}",m._url);e=m._query;delete m._url;delete m._query;c=a.g.request({path:d,S:e,body:JSON.stringify(m),O:"GET",httpOptions:(n=b.config)==null?void 0:n.httpOptions,abortSignal:(q=b.config)==null?void 0:q.abortSignal}).then(function(p){return R(p).then(function(t){t.sdkHttpResponse={headers:p.headers};return t})});return u.return(c.then(function(p){p=Mr(p);var t=new qB;Object.assign(t,p);return t}))})}; vD.prototype.update=function(a){var b=this,c,d,e,f,g,h,m,n,q;return _.J(function(u){d="";e={};if(P(b.g))return f=Tr(b.g,a),d=L("{model}",f._url),e=f._query,delete f._url,delete f._query,c=b.g.request({path:d,S:e,body:JSON.stringify(f),O:"PATCH",httpOptions:(g=a.config)==null?void 0:g.httpOptions,abortSignal:(h=a.config)==null?void 0:h.abortSignal}).then(function(p){return R(p)}),u.return(c.then(function(p){return Nr(p)}));m=Sr(b.g,a);d=L("{name}",m._url);e=m._query;delete m._url;delete m._query;c= b.g.request({path:d,S:e,body:JSON.stringify(m),O:"PATCH",httpOptions:(n=a.config)==null?void 0:n.httpOptions,abortSignal:(q=a.config)==null?void 0:q.abortSignal}).then(function(p){return R(p)});return u.return(c.then(function(p){return Lr(p)}))})}; vD.prototype.delete=function(a){var b=this,c,d,e,f,g,h,m,n,q;return _.J(function(u){d="";e={};if(P(b.g))return f=Rq(b.g,a),d=L("{name}",f._url),e=f._query,delete f._url,delete f._query,c=b.g.request({path:d,S:e,body:JSON.stringify(f),O:"DELETE",httpOptions:(g=a.config)==null?void 0:g.httpOptions,abortSignal:(h=a.config)==null?void 0:h.abortSignal}).then(function(p){return R(p).then(function(t){t.sdkHttpResponse={headers:p.headers};return t})}),u.return(c.then(function(p){var t={};p=O(p,["sdkHttpResponse"]); p!=null&&M(t,["sdkHttpResponse"],p);p=new rB;Object.assign(p,t);return p}));m=Qq(b.g,a);d=L("{name}",m._url);e=m._query;delete m._url;delete m._query;c=b.g.request({path:d,S:e,body:JSON.stringify(m),O:"DELETE",httpOptions:(n=a.config)==null?void 0:n.httpOptions,abortSignal:(q=a.config)==null?void 0:q.abortSignal}).then(function(p){return R(p).then(function(t){t.sdkHttpResponse={headers:p.headers};return t})});return u.return(c.then(function(p){var t={};p=O(p,["sdkHttpResponse"]);p!=null&&M(t,["sdkHttpResponse"], p);p=new rB;Object.assign(p,t);return p}))})}; var uD=function(a,b){var c,d,e,f,g,h,m,n,q;return _.J(function(u){d="";e={};if(P(a.g))return f=Cr(a.g,b),d=L("{model}:predictLongRunning",f._url),e=f._query,delete f._url,delete f._query,c=a.g.request({path:d,S:e,body:JSON.stringify(f),O:"POST",httpOptions:(g=b.config)==null?void 0:g.httpOptions,abortSignal:(h=b.config)==null?void 0:h.abortSignal}).then(function(p){return R(p)}),u.return(c.then(function(p){var t={},v=O(p,["name"]);v!=null&&M(t,["name"],v);v=O(p,["metadata"]);v!=null&&M(t,["metadata"], v);v=O(p,["done"]);v!=null&&M(t,["done"],v);v=O(p,["error"]);v!=null&&M(t,["error"],v);p=O(p,["response"]);p!=null&&M(t,["response"],Er(p));p=new sB;Object.assign(p,t);return p}));m=Ar(a.g,b);d=L("{model}:predictLongRunning",m._url);e=m._query;delete m._url;delete m._query;c=a.g.request({path:d,S:e,body:JSON.stringify(m),O:"POST",httpOptions:(n=b.config)==null?void 0:n.httpOptions,abortSignal:(q=b.config)==null?void 0:q.abortSignal}).then(function(p){return R(p)});return u.return(c.then(function(p){var t= {},v=O(p,["name"]);v!=null&&M(t,["name"],v);v=O(p,["metadata"]);v!=null&&M(t,["metadata"],v);v=O(p,["done"]);v!=null&&M(t,["done"],v);v=O(p,["error"]);v!=null&&M(t,["error"],v);p=O(p,["response","generateVideoResponse"]);p!=null&&M(t,["response"],Dr(p));p=new sB;Object.assign(p,t);return p}))})};var xD=function(a){this.g=a;return this};_.z(xD,kB); xD.prototype.get=function(a){var b=this,c,d,e,f,g,h;return _.J(function(m){if(m.h==1){c=a.operation;d=a.config;if(c.name===void 0||c.name==="")throw Error("wd");return P(b.g)?(f=c.name.split("/operations/")[0],g=void 0,d&&"httpOptions"in d&&(g=d.httpOptions),m.g(yD(b,{operationName:c.name,resourceName:f,config:{httpOptions:g}}),5)):m.g(zD(b,{operationName:c.name,config:d}),4)}if(m.h!=5)return e=m.j,m.return(c._fromAPIResponse({apiResponse:e,_isVertexAI:!1}));h=m.j;return m.return(c._fromAPIResponse({apiResponse:h, _isVertexAI:!0}))})}; var zD=function(a,b){var c,d,e,f,g,h,m,n,q;return _.J(function(u){d="";e={};P(a.g)?(f=ko(b),d=L("{operationName}",f._url),e=f._query,delete f._url,delete f._query,c=a.g.request({path:d,S:e,body:JSON.stringify(f),O:"GET",httpOptions:(g=b.config)==null?void 0:g.httpOptions,abortSignal:(h=b.config)==null?void 0:h.abortSignal}).then(function(p){return R(p)})):(m=jo(b),d=L("{operationName}",m._url),e=m._query,delete m._url,delete m._query,c=a.g.request({path:d,S:e,body:JSON.stringify(m),O:"GET",httpOptions:(n= b.config)==null?void 0:n.httpOptions,abortSignal:(q=b.config)==null?void 0:q.abortSignal}).then(function(p){return R(p)}));return u.return(c)})},yD=function(a,b){var c,d,e,f,g,h;return _.J(function(m){d="";e={};if(P(a.g))return f=go(b),d=L("{resourceName}:fetchPredictOperation",f._url),e=f._query,delete f._url,delete f._query,c=a.g.request({path:d,S:e,body:JSON.stringify(f),O:"POST",httpOptions:(g=b.config)==null?void 0:g.httpOptions,abortSignal:(h=b.config)==null?void 0:h.abortSignal}).then(function(n){return R(n)}), m.return(c);throw Error("vd");})};var AD=function(a){this.g=a;return this};_.z(AD,kB);AD.prototype.create=function(a){var b=this,c,d,e,f,g,h,m;return _.J(function(n){d="";e={};if(P(b.g))throw Error("Ad");f=fs(b.g,a);d=L("auth_tokens",f._url);e=f._query;delete f.config;delete f._url;delete f._query;g=ls(f,a.config);c=b.g.request({path:d,S:e,body:JSON.stringify(g),O:"POST",httpOptions:(h=a.config)==null?void 0:h.httpOptions,abortSignal:(m=a.config)==null?void 0:m.abortSignal}).then(function(q){return R(q)});return n.return(c.then(function(q){return q}))})};var FD=function(a){var b=this;b.g=a;b.list=function(c){c=c===void 0?{}:c;var d,e;return _.J(function(f){return f.h==1?(d=DB,e="tuningJobs",f.g(BD(b,c),2)):f.return(new d(e,function(g){return BD(b,g)},f.j,c))})};b.get=function(c){return _.J(function(d){return d.h==1?d.g(CD(b,c),2):d.return(d.j)})};b.h=function(c){var d,e,f,g,h,m,n,q;return _.J(function(u){switch(u.h){case 1:if(P(b.g)){if(c.baseModel.startsWith("projects/")){m={tunedModelName:c.baseModel};if((n=c.config)==null?0:n.preTunedModelCheckpointId)m.checkpointId= c.config.preTunedModelCheckpointId;q=Object.assign({},c,{preTunedModel:m});q.baseModel=void 0;return u.g(DD(b,q),8)}h=Object.assign({},c);return u.g(DD(b,h),7)}d=Object.assign({},c);return u.g(ED(b,d),4);case 4:return e=u.j,f="",e.metadata!==void 0&&e.metadata.tunedModel!==void 0?f=e.metadata.tunedModel:e.name!==void 0&&e.name.includes("/operations/")&&(f=e.name.split("/operations/")[0]),g={name:f,state:"JOB_STATE_QUEUED"},u.return(g);case 7:return u.return(u.j);case 8:return u.return(u.j)}})};return b}; _.z(FD,kB); var CD=function(a,b){var c,d,e,f,g,h,m,n,q;return _.J(function(u){d="";e={};if(P(a.g))return f=ts(b),d=L("{name}",f._url),e=f._query,delete f._url,delete f._query,c=a.g.request({path:d,S:e,body:JSON.stringify(f),O:"GET",httpOptions:(g=b.config)==null?void 0:g.httpOptions,abortSignal:(h=b.config)==null?void 0:h.abortSignal}).then(function(p){return R(p).then(function(t){t.sdkHttpResponse={headers:p.headers};return t})}),u.return(c.then(function(p){return ys(p)}));m=ss(b);d=L("{name}",m._url);e=m._query; delete m._url;delete m._query;c=a.g.request({path:d,S:e,body:JSON.stringify(m),O:"GET",httpOptions:(n=b.config)==null?void 0:n.httpOptions,abortSignal:(q=b.config)==null?void 0:q.abortSignal}).then(function(p){return R(p).then(function(t){t.sdkHttpResponse={headers:p.headers};return t})});return u.return(c.then(function(p){return ws(p)}))})},BD=function(a,b){var c,d,e,f,g,h,m,n,q;return _.J(function(u){d="";e={};if(P(a.g))return f=vs(b),d=L("tuningJobs",f._url),e=f._query,delete f._url,delete f._query, c=a.g.request({path:d,S:e,body:JSON.stringify(f),O:"GET",httpOptions:(g=b.config)==null?void 0:g.httpOptions,abortSignal:(h=b.config)==null?void 0:h.abortSignal}).then(function(p){return R(p).then(function(t){t.sdkHttpResponse={headers:p.headers};return t})}),u.return(c.then(function(p){p=zs(p);var t=new tB;Object.assign(t,p);return t}));m=us(b);d=L("tunedModels",m._url);e=m._query;delete m._url;delete m._query;c=a.g.request({path:d,S:e,body:JSON.stringify(m),O:"GET",httpOptions:(n=b.config)==null? void 0:n.httpOptions,abortSignal:(q=b.config)==null?void 0:q.abortSignal}).then(function(p){return R(p).then(function(t){t.sdkHttpResponse={headers:p.headers};return t})});return u.return(c.then(function(p){p=xs(p);var t=new tB;Object.assign(t,p);return t}))})}; FD.prototype.cancel=function(a){var b=this,c,d,e,f,g,h,m,n,q;return _.J(function(u){d="";e={};if(P(b.g))return f=ns(a),d=L("{name}:cancel",f._url),e=f._query,delete f._url,delete f._query,c=b.g.request({path:d,S:e,body:JSON.stringify(f),O:"POST",httpOptions:(g=a.config)==null?void 0:g.httpOptions,abortSignal:(h=a.config)==null?void 0:h.abortSignal}).then(function(p){return R(p).then(function(t){t.sdkHttpResponse={headers:p.headers};return t})}),u.return(c.then(function(p){var t={};p=O(p,["sdkHttpResponse"]); p!=null&&M(t,["sdkHttpResponse"],p);p=new uB;Object.assign(p,t);return p}));m=ms(a);d=L("{name}:cancel",m._url);e=m._query;delete m._url;delete m._query;c=b.g.request({path:d,S:e,body:JSON.stringify(m),O:"POST",httpOptions:(n=a.config)==null?void 0:n.httpOptions,abortSignal:(q=a.config)==null?void 0:q.abortSignal}).then(function(p){return R(p).then(function(t){t.sdkHttpResponse={headers:p.headers};return t})});return u.return(c.then(function(p){var t={};p=O(p,["sdkHttpResponse"]);p!=null&&M(t,["sdkHttpResponse"], p);p=new uB;Object.assign(p,t);return p}))})}; var DD=function(a,b){var c,d,e,f,g,h;return _.J(function(m){d="";e={};if(P(a.g))return f=rs(b,b),d=L("tuningJobs",f._url),e=f._query,delete f._url,delete f._query,c=a.g.request({path:d,S:e,body:JSON.stringify(f),O:"POST",httpOptions:(g=b.config)==null?void 0:g.httpOptions,abortSignal:(h=b.config)==null?void 0:h.abortSignal}).then(function(n){return R(n).then(function(q){q.sdkHttpResponse={headers:n.headers};return q})}),m.return(c.then(function(n){return ys(n)}));throw Error("vd");})},ED=function(a, b){var c,d,e,f,g,h;return _.J(function(m){d="";e={};if(P(a.g))throw Error("sc");f=ps(b);d=L("tunedModels",f._url);e=f._query;delete f._url;delete f._query;c=a.g.request({path:d,S:e,body:JSON.stringify(f),O:"POST",httpOptions:(g=b.config)==null?void 0:g.httpOptions,abortSignal:(h=b.config)==null?void 0:h.abortSignal}).then(function(n){return R(n).then(function(q){q.sdkHttpResponse={headers:n.headers};return q})});return m.return(c.then(function(n){var q={},u=O(n,["sdkHttpResponse"]);u!=null&&M(q,["sdkHttpResponse"], u);u=O(n,["name"]);u!=null&&M(q,["name"],u);u=O(n,["metadata"]);u!=null&&M(q,["metadata"],u);u=O(n,["done"]);u!=null&&M(q,["done"],u);n=O(n,["error"]);n!=null&&M(q,["error"],n);return q}))})};var GD=function(a){if(a.apiKey==null)throw Error("Qd");if(a.Qa||a.location)throw Error("Rd");var b;this.mc=(b=a.mc)!=null?b:!1;this.apiKey=a.apiKey;b=a.httpOptions;b=b!=null&&b.baseUrl?b.baseUrl:void 0;b&&(a.httpOptions?a.httpOptions.baseUrl=b:a.httpOptions={baseUrl:b});this.apiVersion=a.apiVersion;this.httpOptions=a.httpOptions;this.g=new XB({auth:new pC(this.apiKey),apiVersion:this.apiVersion,apiKey:this.apiKey,mc:this.mc,httpOptions:a.httpOptions,ll:"gl-node/web",il:new oC,ej:new nC});this.j=new vD(this.g); new IB(this.g);new KB(this.g);this.files=new MB(this.g);new xD(this.g);new AD(this.g);new FD(this.g);new mC(this.g)}; _.$b.Object.defineProperties(GD.prototype,{interactions:{configurable:!0,enumerable:!0,get:function(){if(this.h!==void 0)return this.h;console.warn("GoogleGenAI.interactions: Interactions usage is experimental and may change in future versions.");var a=this.httpOptions;(a==null?0:a.extraBody)&&console.warn("GoogleGenAI.interactions: Client level httpOptions.extraBody is not supported by the interactions client and will be ignored.");var b;var c=this.g;if(c.R.httpOptions&&c.R.httpOptions.baseUrl!== void 0)c=c.R.httpOptions.baseUrl;else throw Error("Ec");var d=this.apiKey;var e=this.g;if(e.R.httpOptions&&e.R.httpOptions.apiVersion!==void 0)e=e.R.httpOptions.apiVersion;else throw Error("Dc");return this.h=(new jD({baseURL:c,apiKey:d,apiVersion:e,Db:this.g,Zi:VB(this.g),timeout:a==null?void 0:a.timeout,Ec:a==null?void 0:(b=a.retryOptions)==null?void 0:b.attempts})).interactions}}});var HD=function(){this.client=new GD({apiKey:Tv})};HD.prototype.call=function(a){var b=this,c;return _.J(function(d){if(d.h==1)return d.g(b.client.j.h({model:"gemini-2.5-flash",contents:a}),2);c=d.j;return d.return(c.text||"")})};var Ds=function(a){this.L=_.E(a)};_.z(Ds,_.G);var Cs=function(a,b){return Es(a,1,b)};var Bs=function(a){this.L=_.E(a)};_.z(Bs,_.G);var As=function(a,b){return _.qk(a,1,b)};var ID=function(){this.g=new HD},KD=function(a,b){var c,d,e,f,g,h,m,n,q;return _.J(function(u){if(u.h==1){c="<*#*#*>";d=Gm(b,1,_.dj());e=d.length;f=d.join(c);var p=b.Oa(),t=b.ra();g="\nYou are a highly skilled Website Localization Expert.\nYour task is to localize a sequence of text strings extracted from a webpage, from "+p+" to "+t+".\n\n### INPUT FORMAT\nThe input text provided consists of multiple text strings from a webpage, joined together by a unique separator: "+c+'\n\n### TRANSLATION RULES\n1. *Contextual Translation:* While each text segment between the separators is a distinct HTML element (e.g., a button label, a menu item, or a short paragraph), you should use the surrounding segments as context to ensure a consistent translation.\n\n2. *Maintain Tone:* Maintain the same tone as the source text.\n\n### OUTPUT REQUIREMENTS\n1. *Strict Separator Preservation:* You MUST use the exact same unique separator to join your translated strings. Do not add or remove spaces around the separator unless required by the target language\'s typography.\n\n2. *Segment Count Match:* The number of separators in your output MUST exactly match the number of separators in the source text.\n\n3. *Clean Output Only:* Output strictly the translated, joined text. Do not include any introductory or concluding remarks (no "Here is the translation:", etc.).\n\n---\n### SOURCE TEXT TO TRANSLATE: '+ f+"\n";u.B(2);h=a.g.call(g);return u.g(h,4)}if(u.h!=2)return m=u.j,n=m.split(c),n.length!==e?u.return(Promise.reject(Error("Sd"))):u.return(JD(n));q=u.A();return u.return(Promise.reject(q))})},JD=function(a){return As(new Bs,a.map(function(b){return Cs(new Ds,b)}))};_.LD=function(){return!1};var Hm=function(a){this.L=_.E(a)};_.z(Hm,_.G);var MD=function(a){this.L=_.E(a)};_.z(MD,_.G);var ND=function(a){this.L=_.E(a)};_.z(ND,_.G);var OD=[1,2];var PD=function(a){this.L=_.E(a)};_.z(PD,_.G);PD.prototype.ab=function(){return _.jj(this,1)};var QD=_.Oi(PD);var RD;var SD=function(){this.oa=new _.dg},TD=function(a,b){var c,d;return _.J(function(e){c=qm(om(nm(new mm,"https"),b.host),b.path);d=new Promise(function(f,g){_.ae(a.oa,"success",function(){f({code:_.mg(a.oa),headers:Ss(a.oa),body:_.ng(a.oa)})});_.ae(a.oa,"error",function(){g({code:_.mg(a.oa),headers:Ss(a.oa),body:_.ng(a.oa)})});_.ae(a.oa,"timeout",function(){g({code:_.mg(a.oa),headers:Ss(a.oa),body:_.ng(a.oa)})})});a.oa.send(c,b.method,b.body,b.headers);return e.return(d)})};var VD=function(a){var b,c,d,e;return _.J(function(f){if(f.h==1){b=RD||(RD=QD('[2,null,[[[["autopush",["autopush-translate-pa.sandbox.googleapis.com"]],["staging",["daily1-translate-pa.sandbox.googleapis.com"]],["prod",["translate-pa.googleapis.com"]]]]]]'));var g=xu(b,ND,3);var h=g.L;h=Tl(Sl(h),h,void 0,OD);g=xu(g,MD,h===1?1:-1);h=g.L;var m=h[_.Wg]|0;g=Im(g,h,m,_.dh(g,m)).get(Pv);c=_.ij(g,1);g=new Cv;h=Gm(a,1,_.dj());g=Rl(g,1,h,Bm).qb(a.Oa()).wa(a.ra());h=new Dv;g=_.gj(h,1,g);d=Es(g,2,Yv);f.B(2); return f.g(UD(c,d),4)}if(f.h!=2)return e=f.j,f.return(Fs(e));f.A();return f.return(Promise.reject(Error("Td")))})},UD=function(a,b){var c=WD,d,e,f,g;return _.J(function(h){if(h.h==1)return d={host:a,path:"/v1/translateHtml",method:"POST",headers:{"X-goog-api-key":"AIzaSyATBXajvzQLTDHEQbcpq0Ihe0vWDHmO520","Content-Type":"application/json+protobuf"},body:_.hk(b)},e=c.g(),h.B(2),h.g(TD(e,d),4);if(h.h!=2)return f=h.j,h.return(Fv(f.body));g=h.A();return h.return(Promise.reject(g))})};var WD=new function(){this.g=function(){return new SD};this.gd=null},XD=function(a,b){this.h=a;this.g=b},YD=function(a,b,c){var d,e;return _.J(function(f){if(f.h==1)return Gm(b,1,_.dj()).length===0?f.return(new Bs):a.g?f.return(KD(a.g,b)):_.LD()?f.return(VD(b)):f.g(a.h.translate(c||function(){},Gm(b,1,_.dj(_.fi)),b.Oa(),b.ra(),0,!1),2);d=f.j;e=d.map(Gs);return f.return(As(new Bs,e))})};var ZD=function(a){this.L=_.E(a)};_.z(ZD,_.G);ZD.prototype.Oa=function(){return _.ij(this,2)};ZD.prototype.qb=function(a){return Es(this,2,a)};ZD.prototype.ra=function(){return _.ij(this,3)};ZD.prototype.wa=function(a){return Es(this,3,a)};var $D=function(a,b,c,d,e,f){this.B=d||function(){};this.V=f||function(){};this.Na=!!e;this.j=a.g.sh;this.l=0;this.K=function(){};this.G=c;this.F=this.h=this.o=0;this.g=null;this.J=0;this.da=!1;this.Z=a.g.qh;this.T=[];this.X=0;this.ca=a.g.Xe;this.A=sx(a);this.xa=this.Na?1:6;this.Ha=a.g.Kh;this.P=b;this.C=[];this.Ba=a;this.Fa=_.hj(Sv,5)?new ID:void 0};$D.prototype.clear=function(){for(var a=0;aa.A&&(a.h=a.A));while(b!=a.h&&c&&a.h0&&b.Kb()>=a.Z)return!0;if(eE(a)>a.h){if(b.Kb()>0)return!0;cE(a,c,eE(a));for(var d=a.g.ga(),e=new fB(d,a.ca),f;f=iB(e,a.h,a.j);)if(jB.indexOf(f.charAt(f.length-1))<0&&b.T++,b.h.push(new dB([f],!1)),a.l+=f.length,a.j-=f.length,a.j<=0){b.F=d.substring(e.g);break}else cE(a,c);gE(b,a.g,!0);a.g=null;return!0}if(eE(a)>a.o)return!0;gE(b, a.g,!0);a.o-=eE(a)+a.Ha;a.l+=a.g.G;a.j-=a.g.G;a.g=null;return!1},iE=function(a){for(var b=[],c={zb:0};c.zb1&&a[c.zb][1]===200?b.push.apply(b,_.mc(a[c.zb][0].toString().split("<extra_id_1>").map(function(d){return function(e){return[e.trim(),a[d.zb][1]]}}(c)))):b.push(a[c.zb]);return b},jE=function(a,b,c,d,e){var f,g,h,m,n,q;return _.J(function(u){switch(u.h){case 1:var p=_.ej(Sv,Lv,6),t=_.hj(p,1);f=_.hj(Sv,3)||t?(t?Gm(p,4,_.dj()):Gm(Sv,4,_.dj())).includes(d.toLowerCase()+ "_"+e.toLowerCase()):!1;if(f){var v=v===void 0?3E3:v;p=_.ej(Sv,Lv,6);if(_.hj(p,1)){p=_.ej(Sv,Lv,6);v=_.rk(p,3);p=_.rk(p,2);t=[];for(var w=0;wv&&w.length>0)break;w.push(y);t++}w.length>0&&p.push(w.join(" <extra_id_1> "))}v= p}}else v=c;g=v;v=new XD(a.Ba,a.Fa);p=new ZD;p=Rl(p,1,g,Bm);h=YD(v,p.qb(d).wa(e),b);u.B(2);return u.g(h,4);case 4:m=u.j;n=Hs(m);q=f?iE(n):n;b(q,200);u.T(3);break;case 2:u.A(),b([],500);case 3:return a.T.push(h),u.return(h)}})};var kE=function(a,b){_.l.call(this);this.l=b;this.j={rootMargin:a};this.g=new IntersectionObserver((0,_.x)(this.h,this),this.j)};_.z(kE,_.l);kE.prototype.N=function(){_.l.prototype.N.call(this);this.g=null};kE.prototype.h=function(a){for(var b=0;b0){this.l();break}};kE.prototype.track=function(a){eu(a,(0,_.x)(this.g.observe,this.g))};var lE=function(a){var b=a!=null?a:{},c=b.pn,d=b.rn,e=b.ln,f=b.sn,g=b.on,h=b.qn,m=b.mn,n=b.nn;a=_.Jl();!n&&Su(c)?(e=!!e,f=!!f,b=b&&b.xn,c=(0,_.El)(Su(c)?"window['ppConfig'] = {productName: "+Xu(rv(d!=null?d:"unknown"))+", deleteIsEnforced: "+Xu(rv(e))+", sealIsEnforced: "+Xu(rv(f))+", heartbeatRate: "+Xu(rv(g!=null?g:.5))+", periodicReportingRateMillis: "+Xu(rv(h!=null?h:6E4))+", disableAllReporting: "+Xu(rv(m!=null?m:!1))+"};"+Xu(rv(c!=null?c:""))+"\x3c/script>": "")):c="";return ct(a,c)};var mE=function(a){return(0,_.El)('')},nE=function(a){var b=a.id,c=a.Dh;return(0,_.El)(lv(a.Eh)+'
'+lv(c))},et=function(a){var b=a.top,c=a.left,d=a.bottom,e=a.right,f=a.id;return(0,_.Fl)("."+bv(a.className)+" {z-index:9999999; overflow:visible; position:fixed; _position:absolute;"+(b||b===0?"top:"+bv(b)+"px; _top:expression(("+bv(b)+"+(hack1=document.documentElement.scrollTop||document.body.scrollTop))+'px');":"top:auto;")+(c||c===0?"left:"+bv(c)+ "px; _left:expression(("+bv(c)+"+(hack2=document.documentElement.scrollLeft||document.body.scrollLeft))+'px');":"left:auto;")+(d||d===0?"bottom:"+bv(d)+"px; _top:expression((-"+bv(d)+"-document.getElementById('"+String(f).replace(sv,hv)+"').offsetHeight+(hack3=document.documentElement.clientHeight||document.body.clientHeight)+(hack4=document.documentElement.scrollTop||document.body.scrollTop))+'px');":"bottom:auto;")+(e||e===0?"right:"+bv(e)+"px; _left:expression((-"+bv(e)+"-document.getElementById('"+ String(f).replace(sv,hv)+"').offsetWidth+(hack5=document.documentElement.clientWidth||document.body.clientWidth)+(hack6=document.documentElement.scrollLeft||document.body.scrollLeft))+'px');":"right:auto;")+"}")},oE=function(){return(0,_.El)('
')};var pE=function(){pn.call(this)};_.z(pE,pn);pE.prototype.W=function(){this.Ea(ym(oE))};pE.prototype.Ea=function(a){this.o=a};pE.prototype.show=function(){vy(this.D(),"VIpgJd-ZVi9od-aZ2wEe-wOHMyf-ti6hGc");vy(this.D().firstChild,"VIpgJd-ZVi9od-aZ2wEe-OiiCO-ti6hGc")};var qE=function(a){xy(a.D(),"VIpgJd-ZVi9od-aZ2wEe-wOHMyf-ti6hGc");xy(a.D().firstChild,"VIpgJd-ZVi9od-aZ2wEe-OiiCO-ti6hGc")};var rE=function(){this.g=new pE;this.g.W();this.g.la();this.h=0};rE.prototype.reset=function(){this.h=0;qE(this.g)};var sE=vw(Cw),tE=function(a,b,c,d,e,f,g,h){this.h=a;this.g=b;this.C=[];this.F=null;this.o=c;this.l=d;this.j=e;this.P=f;this.Ba=g;this.G=this.A=null;this.B=h||null;this.J=this.K=!1;this.I={};this.ca=sE;this.T=0},uE=function(a){for(var b=new Set,c=0;c0){if(a.g.length==1&&a.h.length>1){var b=1;var c=a.h.length}else b=c=a.g.length;var d=a.g.map(function(e){return e.G}).reduce(function(e,f){return e+f});Hw(a.ca,{Kb:b,yh:c,Vh:d,xh:a.T})}};var yE={am:"Noto Sans Ethiopic",ber:"Noto Sans Tifinagh","bm-Nkoo":"Noto Sans NKo",bn:"Lohit Bengali",bo:"Noto Serif Tibetan",dv:"Noto Sans Thaana",dz:"Noto Serif Tibetan",iu:"Noto Sans Canadian Aboriginal",km:"Nokora",lo:"Dhyana",ml:"Noto Sans Malayalam","mni-Mtei":"Noto Sans Meetei Mayek",my:"Noto Sans Myanmar","pa-Arab":"Noto Nastaliq Urdu",ps:"Noto Naskh Arabic",sat:"Noto Sans Ol Chiki",sd:"Noto Naskh Arabic",si:"Noto Sans Sinhala",ta:"Lohit Tamil",yue:"Chocolate Classical Sans"},zE={},AE=(zE["Chocolate Classical Sans"]= "/css2?family=Chocolate+Classical+Sans",zE.Dhyana="/css?family=Dhyana",zE["Lohit Bengali"]="/css?family=Lohit+Bengali",zE["Lohit Tamil"]="/css?family=Lohit+Tamil",zE.Nokora="/css?family=Nokora",zE["Noto Naskh Arabic"]="/earlyaccess/notonaskharabic.css",zE["Noto Nastaliq Urdu"]="/earlyaccess/notonastaliqurdu.css",zE["Noto Sans Canadian Aboriginal"]="/earlyaccess/notosanscanadianaboriginal.css",zE["Noto Sans Ethiopic"]="/earlyaccess/notosansethiopic.css",zE["Noto Sans Malayalam"]="/earlyaccess/notosansmalayalam.css", zE["Noto Sans Meetei Mayek"]="/css?family=Noto+Sans+Meetei+Mayek",zE["Noto Sans Myanmar"]="/earlyaccess/notosansmyanmar.css",zE["Noto Sans NKo"]="/css?family=Noto+Sans+NKo",zE["Noto Sans Ol Chiki"]="/earlyaccess/notosansolchiki.css",zE["Noto Sans Sinhala"]="/earlyaccess/notosanssinhala.css",zE["Noto Sans Thaana"]="/earlyaccess/notosansthaana.css",zE["Noto Sans Tifinagh"]="/earlyaccess/notosanstifinagh.css",zE["Noto Serif Tibetan"]="/css?family=Noto+Serif+Tibetan",zE),BE=function(){this.g=[]}; BE.prototype.restore=function(){for(var a=_.A(this.g),b=a.next();!b.done;b=a.next())b.value.remove();this.g=[]};var CE=function(a,b){_.l.call(this);this.g=[];this.h=[];this.l=a;this.j=b};_.z(CE,_.l);CE.prototype.o=function(a){var b=_.Sc(a.href);b.indexOf("javascript:")==0||b.indexOf("#")>=0||(this.h.push(a.href),this.g.push(a),a.href=b+"#googtrans/"+this.l+"/"+this.j)};CE.prototype.N=function(){_.l.prototype.N.call(this);this.restore()};CE.prototype.restore=function(){if(this.g.length){for(var a=0;a=0||a[b].target.className.indexOf("goog-")==0))return;this.da.add((0,_.x)(this.Tk,this))}};_.k.Tk=function(){this.I=!0;this.T.stop();this.T=GE(this);return!1};_.k.Vg=function(a,b){aE(b,KA(a));IE(this,b);return this.ek}; _.k.ek=function(a,b){if(!this.g)return MA;if(!LA(a))return NA;if(!this.B)for(a=0;a.01?c=Math.max(c*.9,.01):a>1100&&c<.5&&(c=Math.min(c*1.5,.5));this.o=c;this.xa?this.Rb=.01:this.Qb=this.o}this.I=this.g=!0;this.P=(new Date).getTime();this.Yd!=(a=document.body.innerText||document.body.textContent||document.body.innerHTML)?(this.Yd=a,a=!0):a=!1;a?(this.xa=!1,this.o=this.Qb,this.J||CA(this.C,this.o),bE(b,[].concat(this.G),this.C),a=new FA(this,this.C),GA(a,this.Vg),IA(a,(0,_.x)(this.Gg,this)), JA(a,b),this.T=a):(this.xa=!0,this.o=this.Rb,this.J||CA(this.C,this.o),a=new FA(this,this.C),GA(a,this.Pg),IA(a,(0,_.x)(this.Gg,this)),JA(a,b),this.T=a);return MA};_.k.dk=function(a,b){if(!this.g)return MA;this.I=this.g=!1;this.Fa?dE(b,!0):(dE(b),b.V(b.l));if(this.ad)return this.Pg;b.clear();return MA}; var KE=function(a,b,c){a:{var d=JE(a),e=a.Z,f=a.Ld,g=a.Pb.g;b=KA(b);if(!c.I){if(c.P.length==0){c.l==0&&c.X==0&&c.B(0,!0);c=!1;break a}c.I=fE(c,d,e,f,g)}c.ua=!0;QA(c.I,c.j,c.h,b);c=!0}return c?a.Qg:a.Sd},JE=function(a){return a.kb?(0,_.x)(a.K.o,a.K):function(){}};_.k=EE.prototype; _.k.Qg=function(a,b){if(!this.g)return MA;var c=b.o;if(c.g==null){if(!c.ua)return KE(this,a,b.o);if(!LA(a))return NA;c.ua=!1;c.g=c.I.Wc||null;var d=c.g?c.g:c.I=null;if(!d)return KE(this,a,b.o);this.F.push(d);var e=d.ga();if(this.h.has(e,!this.B)||b.I[e]!=null&&b.I[e])return e=c.g.G,c.l+=e,c.j-=e,c.g=null,this.B&&gE(b,d,!1),KE(this,a,b.o);e=this.h;d=d.ga();e.g[d]=null}b.Kb()>0&&CA(this.C,.5);return hE(c,b,Ww(this.h.h))?this.Sd:KE(this,a,b.o)}; _.k.Sd=function(a,b){if(!this.g||b.Kb()==0)return MA;IE(this,b.o);return this.B?(b.trackVisibility(KA(a)),this.fk):b.translate(a)==0?MA:this.Ug};_.k.fk=function(a,b){return this.g?LA(a)?b.translate(a)==0?MA:this.Ug:NA:MA}; _.k.rg=function(a,b){b.l&&this.h.remove(b.j);if(!this.g)return!1;if(this.h.has(b.ga(),!1)){var c=this.h;c.has(b.j,!1)?(b.h=c.read(b.j),b.T=!0):(c.remove(b.j),b.l=!0);uA(b)}else if(c=this.h,b.l)c.remove(b.j);else if(b.F){var d=b.F.replace(//g,"/span>");b.T=!0;delete b.F;b.F=null;b.h=[];var e=document.implementation.createHTMLDocument(""),f=e.createElement("div");Ju(f,!1);d=d.indexOf("")>=0?d:""+d+"";d=_.Tb(d);d=_.xl(d);f.nodeType===1&&$l(f);f.innerHTML=_.qj(d); e.body.appendChild(f);e=[];for(d=f.firstChild;d;d=d.nextSibling)if(d.tagName=="I")var g=sA(b,Zt(d),d.innerHTML);else if(d.tagName=="B"){g||(g=sA(b,"",""));if(b.g.length==1)yA(g.parts,e,0,d);else{var h=e;var m=d;var n=b.g;g=g.parts;for(var q=[],u=m.firstChild;u;u=p){var p=u.nextSibling;zA(u)}for(p=m.firstChild;p;p=p.nextSibling)p.attributes&&p.attributes.i?(m=parseInt(p.attributes.i.nodeValue,10),!isNaN(m)&&m>=0&&m0&&g[0].aa==-1&&(g.length==1?g[0].aa=0:(g[1].ea=g[0].ea+g[1].ea,g.shift()))}g=void 0}d=b.h;for(h=0;h1){a=b.h[0];var c=b.g;if(a.j||c.length==0||a.g==null||a.g.length==0)a=null;else{for(var d=[],e=[],f=0;f0?{Uk:new dB(d,!0),Vk:e}:null}a=a?new tE([a.Uk],a.Vk,b.o,b.l,b.j,b.P,b.Ba,b.B):null;a!=null&&IE(this,b.o,a,this.Sd)}else{a=!1;for(c=0;c1)if(c=b.h[0],e=d=="auto",d=b.g,c.h==200)for(f=0;f"),lE(e));f='
"; else c=Gx.He,c='Google '+T(c)+'';var d=Gx.He;var e=(0,_.El)(''+c+lv(d)+"");c=b.format;d=U;var f=d.wi;e=e.Lc();e=Nt(b,{type:"html",dh:_.qj(e).toString()});b=c.call(b,f.call(d,e)); wm(a,nE({id:V(this,"targetLanguage"),Eh:"",Dh:this.g.layout==1?em(["\u00a0","\u00a0",b]):b}))}this.Ea(a)}; _.k.ya=function(){WE.U.ya.call(this);this.l=this.g.layout==2?new UE(null,this.h):new PE(this.h);this.j.M(this.l,"change",Pw(this,"chg_tgt_lang"));this.j.M(this.l,"load",this.li);var a=this.h.D(V(this,"targetLanguage"));if(this.g.layout==2){var b=this.h.W("IMG",{src:"https://www.google.com/images/cleardot.gif","class":"goog-te-gadget-icon",alt:""});b.style.backgroundImage="url("+bw+")";b.style.backgroundPosition="-65px 0px";var c=this.h.W("SPAN",{style:"vertical-align: middle"});a.appendChild(b);a.appendChild(c); this.l.la(c);a.style.whiteSpace="nowrap";a.className="goog-te-gadget-simple"}else this.l.la(a),this.g.layout==1&&(a.style.display="inline")};_.k.li=function(){if(this.g.layout==2){var a=this.l,b=this.h.D(V(this,"targetLanguage"));a.B.gb(a.F,"click",a.lf);a.F=b;a.B.M(a.F,"click",a.lf)}this.dispatchEvent("load")};_.k.va=function(){WE.U.va.call(this);this.j.dispose();this.j=null;this.l.dispose();this.l=null};_.k.ra=function(){return this.l.za()}; _.k.wa=function(a){a==""?this.P&&this.l.Mb(this.P):this.J&&this.l.Mb(this.J);this.l.La(a)};_.k.ha=function(a){Ju(this.D(),a)};_.k.pb=function(a){this.l.pb(a)};_.k.Sf=function(a,b){this.P=a;this.J=b};var YE=function(a,b){pn.call(this,b);this.g=a&&Xl(a)||{};this.g.Cb||(this.g.Cb=ew);this.j=new _.Qb(this)};_.C(YE,pn);var ZE={Qm:1,Rm:2,Bl:3,Al:4};_.k=YE.prototype;_.k.W=function(){var a=this.h.createElement("div");this.ib=!1;Ju(a,!1);var b=V(this,"container");b=(0,_.El)('');wm(a,b);this.Ea(a)}; _.k.ya=function(){YE.U.ya.call(this);var a=_.Ef.test(Qv)?"rtl":"ltr",b=_.Ub(this.g.Cb),c=V(this,"translate");this.D().id=V(this,"floatContainer");var d={id:this.D().id,className:"goog-te-ftab-float"};this.D().className+=" goog-te-ftab-float";switch(this.g.Kd){case 2:var e="goog-te-float-top";d.top=0;d.right=20;break;case 3:e="goog-te-float-bottom";d.bottom=0;d.right=20;break;case 4:e="goog-te-float-bottom";d.bottom=0;d.left=20;break;default:e="goog-te-float-top",d.top=0,d.left=20}Ku(ft(new _.Ff,d), this.D());this.C=this.h.D(V(this,"container"));this.j.M(this.C,"load",this.mi);Tw(this.C,(0,_.x)(function(){var f=St(this.C),g=e,h={},m=h&&h.Ag,n=Gx.mg;g=bt(ct(bt(_.Jl(),""),lE(h)),''+lv(n)+"").Lc();f.write(_.qj(g));f.close()},this))};_.k.mi=function(){this.l=(new _.Ed(St(this.C))).D(V(this,"translate"));this.j.M(this.l,"click",Pw(this,"clk_trans"));Ju(this.D(),!0);var a=Mu(this.l);Ju(this.D(),!1);Ou(this.C,a);Ou(this.D(),a);this.dispatchEvent("load")}; _.k.va=function(){YE.U.va.call(this);this.j.dispose();this.j=null;_.Od(this.C);this.l=this.C=null};_.k.isVisible=function(){return this.ib};_.k.ha=function(a){this.ib=a;Ju(this.D(),a)};var $E=function(a,b){pn.call(this,b);this.B=new _.Qb(this);this.g=a&&Xl(a)||{};this.g.Cb=ew;this.g.Vf=!1;_.mj(this.h.g.body,"position","relative");_.Uh||_.mj(this.h.g.body,"minHeight","100%");_.mj(this.h.g.documentElement,"height","100%");_.mj(this.h.g.body,"top","0px");_.fd&&(window._bannerquirkfixleft=-parseInt("0"+this.h.g.body.leftMargin,10),window._bannerquirkfixtop=-parseInt("0"+this.h.g.body.topMargin,10)-40)};_.C($E,pn);_.k=$E.prototype;_.k.la=function(){this.kd(this.h.g.body.firstChild)}; _.k.W=function(){var a=this.h.createElement("div");this.ib=!1;Ju(a,!1);vy(a,"skiptranslate");var b=V(this,"container");b=(0,_.El)('');wm(a,b);this.Ea(a)}; _.k.ya=function(){$E.U.ya.call(this);var a=_.Ef.test(Qv)?"rtl":"ltr",b=_.Ub(this.g.Cb),c=V(this,"promptSection"),d=V(this,"confirm"),e=V(this,"progressSection"),f=V(this,"progressValue"),g=V(this,"cancel"),h=V(this,"finishSection"),m=V(this,"restore"),n=V(this,"errorSection"),q=V(this,"errorContent"),u=V(this,"close"),p=V(this,"noAutoPopup"),t,v=[];this.g.Vf&&v.push(mE({id:V(this,"promptSourceLang")}));v.push(mE({id:V(this,"promptTargetLang")}));var w=Am(U.Hi.apply(null,v));v=[];this.g.Vf&&v.push(mE({id:V(this, "finishSourceLang")}));v.push(mE({id:V(this,"finishTargetLang")}));var y=Am(U.Bi.apply(null,v));this.g.Rh&&(t=this.g.Rh);this.C=this.h.D(V(this,"container"));this.B.M(this.C,"load",this.ni);Tw(this.C,(0,_.x)(function(){var B=St(this.C),H=t,I={},N=I&&I.Ag,K=Gx.He,X=Gx.mg,F=Gx.Ci,ea=Gx.bi,Y=Gx.xi,ya=Gx.Zf,Q=Gx.Zf;H=bt(ct(bt(_.Jl(),""),lE(I)),''+(Su(H)?'':"")+'
Google '+T(K)+''+T(H)+'
'+T(Q)+'
').Lc();B.write(_.qj(H));B.close()},this))}; _.k.ni=function(){this.j=new _.Ed(St(this.C));aF(this,U.bg);if(this.g.Cb==ew){var a="url("+aw+")";_.mj(this.j.g.body,"backgroundImage",a);for(var b=this.j.g.getElementsByTagName("button"),c=0;c=40&&(this.h.g.body.topMargin=c-40))}};$E.prototype.Rf=function(a){this.j.Kc(this.j.D(V(this,"progressValue")),a)};var aF=function(a,b){a.j.Kc(a.j.D(V(a,"errorContent")),b)};$E.prototype.Sf=function(a,b){this.P=a;this.J=b;this.l.Mb(a)};var dF=function(a,b){_.l.call(this);_.Cc(a)=="string"&&(b=a,a={});_.Cc(b)=="string"&&(b=Un(String(b)));this.X=b;this.A=new _.Qb(this);a=Object(a);this.o="auto";!(b=window.parent!=window)&&(b=(!window.external||!window.external.googleToolbarVersion||parseFloat(window.external.googleToolbarVersion)<6.2)&&(!window.gtbExternal||!window.gtbExternal.isTranslateEnabled||!window.gtbExternal.isTranslateEnabled()))&&(b=navigator.appVersion&&navigator.appVersion.match(/\sChrome\/((\d+)\.(\d+)\.[\d\.]+)\s/), b=!(b&&b[2]&&b[3]&&Number(b[2])*1E3+Number(b[3])>=4001));this.g={Qe:b,Lg:!1,Re:null,Bd:null,rf:[],Ig:[],bj:!1,Fc:!1,apiKey:"",layout:0,Cg:!1};this.xa={Cb:ew,Rh:$v=="https://"?U.zi:null};this.Z={Cb:ew,Kd:null};a&&("autoDisplay"in a&&(this.g.Qe=this.g.Qe&&!!a.autoDisplay),"multilanguagePage"in a&&(this.g.Fc=!!a.multilanguagePage),"layout"in a&&(this.g.layout=a.layout),a.pageLanguage&&(this.g.ne=Qw(a.pageLanguage)),a.includedLanguages&&(this.g.rf=a.includedLanguages.split(",")),a.excludedLanguages&& (this.g.Ig=a.excludedLanguages.split(",")),this.g.ne&&(this.o=this.g.ne),a.key&&(this.g.apiKey=a.key),this.Z.Kd=Number(a.floatPosition)||this.Z.Kd,"disableAutoTranslation"in a&&(this.g.Cg=!!a.disableAutoTranslation));!this.g.Cg&&cF(this)&&(this.g.Lg=!0);this.C={};if((a=document.cookie.match(/(^|; )googtransopt=(.*?)(;|$)/))&&a[2])for(this.C={},a=_.Mb(a[2]).split("|"),b=0;b2;)c.shift();c=";domain="+c.join(".");b!=null?a=a+"="+b:(b=new Date,b.setTime(b.getTime()-1),a=a+"=none;expires="+b.toGMTString());a+=";path=/";document.cookie=a;try{document.cookie=a+c}catch(d){}},fF=function(a,b){var c=null;b!==void 0&&(c=a!==void 0?"/"+a+"/"+b:"/"+b);eF("googtrans",c)};_.k=dF.prototype; _.k.Nj=function(a){this.j=Qw(Qv);a=a||{};var b=a.targetLanguages||[];this.T={sl:ln(a.sourceLanguages||[]),tl:ln(b)};this.G={};this.V={};a=!this.g.rf.length;b=Iw(this.g.rf);var c=Iw(this.g.Ig);this.G[Qv]="";this.V[Qv]="";for(var d in this.T.tl)this.T.tl[d]===Object.prototype[d]||!(a||d in b)||d in c||(this.V[d]=this.T.tl[d],d==this.g.ne&&!this.g.Fc)||(this.G[d]=this.T.tl[d]);this.G[Qv]||delete this.G[Qv];this.V[Qv]||delete this.V[Qv];this.da=Xl(this.T.sl)};_.k.Ij=function(a){a&&(this.o=Qw(a))}; _.k.Qj=function(){delete this.J;if(this.T){this.o=this.o||this.g.Re;this.j=this.g.Bd||this.j;var a=this.g.Lg||this.g.Qe&&this.o!=this.j&&!(this.o in Wv)&&this.C.os!="1"&&this.C["o"+this.o]!="1";this.o=="zh-TW"&&(this.o="zh-CN");this.da[this.o]||(a=!1,this.o="auto");if(!this.G[this.j])if(a=!1,this.G.en)this.j="en";else for(var b in this.G)if(this.G[b]!==Object.prototype[b]){this.j=b;break}if(this.l){b=this.G;var c={"":U.yi},d;for(d in b)b[d]!==Object.prototype[d]&&(c[d]=b[d]);this.l.Sf(c,this.V);this.l.wa("")}!Uv&& a?this.g.Bd?Mw(this.P,this.K.delay((0,_.x)(this.we,this,!0,!0))).call():(this.I=!0,Mw(this.P,this.K.delay((0,_.x)(this.we,this))).call(),en("te_ap",{sl:this.o})):(this.B&&this.B.ha(!0),this.l&&this.l.ha(!0));window.google.translate.TranslateService&&this.pb(!1);this.P.finish()}}; _.k.Vj=function(){var a=this.h,b=this.da;a.A&&a.A.Mb(b);a.X=b;this.h.Sf(this.G,this.V);this.h.qb(this.o);this.h.wa(this.j);this.A.M(this.h,"clk_confirm",this.Cj);this.A.M(this.h,"clk_cancel",this.Bj);this.A.M(this.h,"clk_restore",this.jf);this.A.M(this.h,"clk_close",this.Qd);this.A.M(this.h,"clk_no_ap",this.Dj);this.A.M(this.h,"clk_no_ap_site",this.Ej);this.A.M(this.h,"chg_src_lang",this.Ng);this.A.M(this.h,"chg_tgt_lang",this.Ng);this.l&&this.l.ha(!0)}; _.k.qk=function(){this.A.M(this.h,"load",this.K.register());this.h.la();this.K.finish()};_.k.N=function(){this.F.restore();_.l.prototype.N.call(this);this.F.dispose();this.A.dispose();this.A=null;this.h&&this.h.dispose();this.h=null;this.B&&this.B.dispose();this.B=null;this.l&&this.l.dispose();this.X=this.l=null};_.k.Cj=function(){!this.h.isVisible()||!this.g.Fc&&Xw(this.o,this.h.ra())||(this.I&&en("te_apt",{sl:this.o}),gF(this,!1),this.l&&this.l.wa(this.h.ra()))}; _.k.Bj=function(){this.h.isVisible()&&(hF(this),bF(this.h,0),this.l&&this.l.wa(""))};_.k.jf=function(){this.h.isVisible()&&(hF(this),bF(this.h,0));this.l&&this.l.wa("")};_.k.Qd=function(){this.h.isVisible()&&(this.I&&(this.I=!1,en("te_apc",{sl:this.o})),hF(this),this.h.ha(!1),this.l&&this.l.wa(""),this.B&&this.B.ha(!0))};_.k.Dj=function(){this.h.isVisible()&&(this.C["o"+this.o]="1",en("te_apr",{sl:this.o}),this.I=!1,this.Qd())}; _.k.Ej=function(){if(this.h.isVisible()){this.I=!1;this.C.os="1";var a=null;if(this.C){a=[];for(var b in this.C)this.C[b]!==Object.prototype[b]&&a.push(b+"="+this.C[b]);a=a.join("|")}eF("googtransopt",a);this.Qd()}};_.k.Ng=function(){this.h.isVisible()&&(!this.g.Fc&&Xw(this.o,this.h.ra())?this.jf():(this.o=this.h.Oa()||this.o,this.j=this.h.ra(),this.h.Tc==2&&(this.l&&this.l.wa(this.h.ra()),gF(this))))};_.k.we=function(a,b){this.h.isVisible()||(this.B&&this.B.ha(!1),a?gF(this,b):bF(this.h,0,!0,this.I))}; _.k.Yk=function(a,b){Mw(this.P,this.K.delay((0,_.x)(this.we,this,a,b))).call()};_.k.Kj=function(){this.we(this.h.Tc==2)};_.k.Mj=function(){this.l.ra()?!this.g.Fc&&Xw(this.o,this.h.ra())?this.jf():(this.j=this.l.ra(),this.h.wa(this.j),gF(this)):this.l.wa(this.j)}; var gF=function(a,b){if(window.google.translate.TranslateService)try{window.google.translate.TranslateService.getInstance().restore()}catch(c){}fF(a.o,a.j);a.I=!1;!b&&a.o in Wv&&en("te_ape",{sl:a.o});a.h.Rf(0);bF(a.h,1,!0);a.F.Nh(!!b);window.setTimeout((0,_.x)(a.F.ze,a.F,a.g.Fc?"auto":a.o,a.j,(0,_.x)(a.Fa,a),void 0,void 0),0)}; dF.prototype.Fa=function(a,b,c){typeof this.Ha=="function"&&this.Ha();this.h.isVisible()&&this.h.Tc==1&&(c?(hF(this),bF(this.h,-1,!0),c==2?aF(this.h,U.ri):aF(this.h,U.bg)):(this.h.Rf(a),b&&(this.l&&this.l.wa(this.j),this.h.qb(this.o),bF(this.h,2))))};var hF=function(a){fF();window.setTimeout((0,_.x)(a.F.restore,a.F,null),0)};dF.prototype.pb=function(a){a||this.Qd();this.l&&this.l.pb(a);this.B&&this.B.ha(a)};var iF=function(a){if(a&&(a=String(a),a=a.split("."),a.length)){for(var b=window,c=0;c=2E4?c():window.setTimeout(e,500)}())})(); _.LD=function(){return!0}; _.na(); }catch(e){_._DumpException(e)} }).call(this,this.default_tr); // Google Inc.